java.lang.Object
io.github.gameking1happy.gk1haccessorifyplus.packs.Packs
All Implemented Interfaces:
io.github.gameking1happy.gk1hcore.packs.AddPacks

public class Packs extends Object implements io.github.gameking1happy.gk1hcore.packs.AddPacks
Class to add packs.
  • Constructor Details

    • Packs

      public Packs()
  • Method Details

    • addPacks

      public void addPacks(@NotNull @NotNull Object modContainerOrEvent)
      Specified by:
      addPacks in interface io.github.gameking1happy.gk1hcore.packs.AddPacks
      Parameters:
      modContainerOrEvent - ModContainer for Fabric, AddPackFindersEvent for NeoForge.
    • prependPath

      @NotNull public static @NotNull String prependPath(@NotNull @NotNull String path)
      Checks Accessorify's slot mode and prepends string accordingly.
      Parameters:
      path - String to prepend.
      Returns:
      Prepends with "unique/" if SlotMode.UNIQUE_SLOT, otherwise prepends with "default/".
    • getModID

      @NotNull public @NotNull String getModID()
      Specified by:
      getModID in interface io.github.gameking1happy.gk1hcore.packs.AddPacks
      Returns:
      Returns the mod ID.