Mod
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.mod.Mod;
Description
Represents a mod in the game. You can get a mod by using loadedMods.botania
or loadedMods["botania"]
Members
loadedMods.botania.attributes
Return Type:
Collection<Attribute>
Returns: A list of attributes that were registered under this mod's ID.
loadedMods.botania.attributes();
Return Type:
Collection<Attribute>
loadedMods.botania.blocks
Return Type:
Collection<Block>
Returns: A list of blocks that were registered under this mod's ID.
loadedMods.botania.blocks();
Return Type:
Collection<Block>
// Mod.displayName as stringloadedMods.botania.displayName
Return Type:
string
Returns: The display name of this mod.
// Mod.displayName() as string;loadedMods.botania.displayName();
Return Type:
string
loadedMods.botania.enchantments
Return Type:
Collection<Enchantment>
Returns: A list of enchantments that were registered under this mod's ID.
loadedMods.botania.enchantments();
Return Type:
Collection<Enchantment>
loadedMods.botania.fluids
Return Type:
Collection<Fluid>
Returns: A list of fluids that were registered under this mod's ID.
loadedMods.botania.fluids();
Return Type:
Collection<Fluid>
// Mod.id as stringloadedMods.botania.id
Return Type:
string
Returns: The id (namespace) of this mod.
// Mod.id() as string;loadedMods.botania.id();
Return Type:
string
loadedMods.botania.items
Return Type:
Collection<ItemDefinition>
Returns: A list of items that were registered under this mod's ID.
loadedMods.botania.items();
Return Type:
Collection<ItemDefinition>
loadedMods.botania.itemStacks
Return Type:
Collection<IItemStack>
Returns: A list of ItemStacks that were registered under this mod's ID.
loadedMods.botania.itemStacks();
Return Type:
Collection<IItemStack>
loadedMods.botania.mobEffects
Return Type:
Collection<MobEffect>
Returns: A list of mob effects that were registered under this mod's ID.
loadedMods.botania.mobEffects();
Return Type:
Collection<MobEffect>
loadedMods.botania.potions
Return Type:
Collection<Potion>
Returns: A list of potions that were registered under this mod's ID.
loadedMods.botania.potions();
Return Type:
Collection<Potion>
loadedMods.botania.soundEvents
Return Type:
Collection<SoundEvent>
Returns: A list of sound events that were registered under this mod's ID.
loadedMods.botania.soundEvents();
Return Type:
Collection<SoundEvent>
// Mod.version as stringloadedMods.botania.version
Return Type:
string
Returns: The version of this mod.
// Mod.version() as string;loadedMods.botania.version();
Return Type:
string
loadedMods.botania.villagerProfessions
Return Type:
Collection<VillagerProfession>
Returns: A list of villager professions that were registered under this mod's ID.
loadedMods.botania.villagerProfessions();
Return Type:
Collection<VillagerProfession>