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:
-