Class Main
java.lang.Object
io.github.gameking1happy.gk1hcore.Main
The main class for the mod.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidList ofAddPacksclasses given by mods.static voidCommon method for initializing the mod.static booleanpackContainsAnyFromList(@NotNull net.minecraft.server.packs.repository.Pack pack, @NotNull List<String> list) Method to check if a pack ID contains any of the strings in a list.static voidpackExclude(String Exclusion) Adds a string toAddPacksList.
-
Field Details
-
MOD_ID
The mod ID.- See Also:
-
MOD_NAME
The mod name.- See Also:
-
LOG
public static final org.slf4j.Logger LOGThe mod logger. -
PackExclusions
List of packs to be excluded from the pack selection screen.- See Also:
-
AddPacksList
List ofAddPacksclasses given by other mods for their packs to be added.
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
init
Common method for initializing the mod.- Parameters:
modBus- Required forRegisterPacksto work.
-
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 beAddPacksList, 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
Adds a string toAddPacksList.- Parameters:
Exclusion- String to add toAddPacksList.- See Also:
-
addClass
List ofAddPacksclasses given by mods.- Parameters:
aP-AddPacksclass given by mod.- See Also:
-