Class Main

java.lang.Object
io.github.gameking1happy.gk1hcore.Main

public class Main extends Object
The main method for the mod.
  • Field Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • init

      public static void init(Object modBus)
      Common method for initializing the mod.
      Parameters:
      modBus - Required for RegisterPacks to work.
    • fNAP

      @NotNull public static @NotNull net.minecraft.resources.ResourceLocation fNAP(@NotNull @NotNull String namespace, @NotNull @NotNull String path)
      Method to more simply call the ResourceLocation.fromNamespaceAndPath(String, String) method.
      Parameters:
      namespace - Namespace.
      path - Path.
      Returns:
      ResourceLocation.
    • packContainsAnyFromList

      public static boolean packContainsAnyFromList(@NotNull @NotNull net.minecraft.server.packs.repository.Pack pack, @NotNull @NotNull List<String> list)
      Method to check if a pack ID contains any of the strings in a list.
      Parameters:
      pack - Current pack being checked.
      list - Supposed to be AddPacksList, but technically this method can be used for other purposes which could use other lists.
      Returns:
      True if the pack ID does contain one of the strings in the list, otherwise returns false.
      See Also:
    • packExclude

      public static void packExclude(String Exclusion)
      Adds a string to AddPacksList.
      Parameters:
      Exclusion - String to add to AddPacksList.
      See Also:
    • addClass

      public static void addClass(AddPacks aP)
      List of AddPacks classes given by mods.
      Parameters:
      aP - AddPacks class given by mod.
      See Also: