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;
Represents a mod in the game. You can get a mod by using loadedMods.botania
or loadedMods["botania"]
Gets the attributes that are registered under this mod's ID. // Mod.attributes as Collection<Attribute>
Return Type:
Collection <Attribute >
Gets the attributes that are registered under this mod's ID. Returns : A list of attributes that were registered under this mod's ID.
// Mod.attributes() as Collection<Attribute>;
Return Type:
Collection <Attribute >
Gets the blocks that are registered under this mod's ID. // Mod.blocks as Collection<Block>
Return Type:
Collection <Block >
Gets the blocks that are registered under this mod's ID. Returns : A list of blocks that were registered under this mod's ID.
// Mod.blocks() as Collection<Block>;
Return Type:
Collection <Block >
Gets the display name of this mod. // Mod.displayName as string
Return Type:
string
Gets the display name of this mod. Returns : The display name of this mod.
// Mod.displayName() as string;
Return Type:
string
Gets the enchantments that are registered under this mod's ID. // Mod.enchantments as Collection<Enchantment>
Return Type:
Collection <Enchantment >
Gets the enchantments that are registered under this mod's ID. Returns : A list of enchantments that were registered under this mod's ID.
// Mod.enchantments() as Collection<Enchantment>;
Return Type:
Collection <Enchantment >
Gets the fluids that are registered under this mod's ID. // Mod.fluids as Collection<Fluid>
Return Type:
Collection <Fluid >
Gets the fluids that are registered under this mod's ID. Returns : A list of fluids that were registered under this mod's ID.
// Mod.fluids() as Collection<Fluid>;
Return Type:
Collection <Fluid >
Gets the id (namespace) of this mod.
Return Type:
string
Gets the id (namespace) of this mod. Returns : The id (namespace) of this mod.
Return Type:
string
Gets the items that are registered under this mod's ID. // Mod.items as Collection<Item>
Return Type:
Collection <ItemDefinition >
Gets the items that are registered under this mod's ID. Returns : A list of items that were registered under this mod's ID.
// Mod.items() as Collection<Item>;
Return Type:
Collection <ItemDefinition >
Gets the ItemStacks that are registered under this mod's ID. // Mod.itemStacks as Collection<IItemStack>
Return Type:
Collection <IItemStack >
Gets the ItemStacks that are registered under this mod's ID. Returns : A list of ItemStacks that were registered under this mod's ID.
// Mod.itemStacks() as Collection<IItemStack>;
Return Type:
Collection <IItemStack >
Gets the mob effects that are registered under this mod's ID. // Mod.mobEffects as Collection<MobEffect>
Return Type:
Collection <MobEffect >
Gets the mob effects that are registered under this mod's ID. Returns : A list of mob effects that were registered under this mod's ID.
// Mod.mobEffects() as Collection<MobEffect>;
Return Type:
Collection <MobEffect >
Gets the potions that are registered under this mod's ID. // Mod.potions as Collection<Potion>
Return Type:
Collection <Potion >
Gets the potions that are registered under this mod's ID. Returns : A list of potions that were registered under this mod's ID.
// Mod.potions() as Collection<Potion>;
Return Type:
Collection <Potion >
Gets the sound events that are registered under this mod's ID. // Mod.soundEvents as Collection<SoundEvent>
Return Type:
Collection <SoundEvent >
Gets the sound events that are registered under this mod's ID. Returns : A list of sound events that were registered under this mod's ID.
// Mod.soundEvents() as Collection<SoundEvent>;
Return Type:
Collection <SoundEvent >
Gets the version of this mod.
Return Type:
string
Gets the version of this mod. Returns : The version of this mod.
// Mod.version() as string;
Return Type:
string
Gets the villager professions that are registered under this mod's ID. // Mod.villagerProfessions as Collection<VillagerProfession>
myMod . villagerProfessions
Return Type:
Collection <VillagerProfession >
Gets the villager professions that are registered under this mod's ID. Returns : A list of villager professions that were registered under this mod's ID.
// Mod.villagerProfessions() as Collection<VillagerProfession>;
myMod . villagerProfessions();
Return Type:
Collection <VillagerProfession >