Class Mods
java.lang.Object
com.blamejared.crafttweaker.api.mod.Mods
Holds information on all the mods that are registered.
Can be accessed using the `loadedMods` global keyword
- DocParam:
- this loadedMods
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
getMods
Gets a list of all mods in the game- Returns:
- list of Mod
-
getMod
Gets a specific mod- Returns:
- a specific Mod
- DocParam:
- modid "minecraft"
-
getModByIndex
-
isModLoaded
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
-