java.lang.Object
com.blamejared.crafttweaker.api.mod.Mods

@ZenRegister public class Mods extends Object
Holds information on all the mods that are registered. Can be accessed using the `loadedMods` global keyword
DocParam:
this loadedMods
  • Field Details

    • INSTANCE

      public static final Mods INSTANCE
  • Method Details

    • getMods

      public List<Mod> getMods()
      Gets a list of all mods in the game
      Returns:
      list of Mod
    • getMod

      public Mod getMod(String modid)
      Gets a specific mod
      Returns:
      a specific Mod
      DocParam:
      modid "minecraft"
    • getModByIndex

      public Mod getModByIndex(String modid)
    • isModLoaded

      public boolean isModLoaded(String modid)
      Checks if a mod is laoded
      Parameters:
      modid - modid to check
      Returns:
      true if the mod is loaded
      DocParam:
      modid "minecraft"
    • getSize

      public int getSize()
      Gets the amount of mods loaded
      Returns:
      The amount of mods that are loaded