Class AddPackPreset
java.lang.Object
io.github.gameking1happy.gk1hcore.packs.AddPackPreset
Add pack presets, for adding to the
Main.packExclusions list, and commonly used parameters and display name formating.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCDP = Configurable Datapack Preset, used for data packs which are toggled via configs.static voidCRP = Configurable Resource Preset, used for resource packs which are toggled via configs.static voidaddHiddenPack(@NotNull Object modContainerOrEvent, @NotNull String modID, @NotNull String path, @NotNull String displayName, @NotNull ActivationType actType, @NotNull PackType type, @NotNull PackSource source, @NotNull PackPosition position) Also adds the pack toMain.packExclusions.
-
Constructor Details
-
AddPackPreset
public AddPackPreset()
-
-
Method Details
-
addHiddenPack
public static void addHiddenPack(@NotNull @NotNull Object modContainerOrEvent, @NotNull @NotNull String modID, @NotNull @NotNull String path, @NotNull @NotNull String displayName, @NotNull @NotNull ActivationType actType, @NotNull @NotNull PackType type, @NotNull @NotNull PackSource source, @NotNull @NotNull PackPosition position) Also adds the pack toMain.packExclusions.- Parameters:
modContainerOrEvent- ModContainer for Fabric, AddPackFindersEvent for NeoForge.modID- Mod ID of the mod the pack is added by.path- The path the pack is in, starting in the "resource/" directory.displayName- Display name of the pack.actType- SeeActivationType.type- SeePackType.source- SeePackSource.position- SeePackPosition.- See Also:
-
addCdp
public static void addCdp(@NotNull @NotNull Object modContainerOrEvent, @NotNull @NotNull String modID, @NotNull @NotNull String path) CDP = Configurable Datapack Preset, used for data packs which are toggled via configs.- Parameters:
modContainerOrEvent- ModContainer for Fabric, AddPackFindersEvent for NeoForge.modID- Mod ID of the mod the pack is added by.path- The path the pack is in, starting in the "resource/" directory.- See Also:
-
addCrp
public static void addCrp(@NotNull @NotNull Object modContainerOrEvent, @NotNull @NotNull String modID, @NotNull @NotNull String path) CRP = Configurable Resource Preset, used for resource packs which are toggled via configs.- Parameters:
modContainerOrEvent- ModContainer for Fabric, AddPackFindersEvent for NeoForge.modID- Mod ID of the mod the pack is added by.path- The path the pack is in, starting in the "resource/" directory.- See Also:
-