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

@ZenRegister public final class Mod extends Object
Represents a mod in the game.

You can get a mod by using loadedMods.botania or loadedMods["botania"]

DocParam:
this loadedMods.botania
  • Constructor Details

  • Method Details

    • getItems

      public Collection<net.minecraft.world.item.Item> getItems()
      Gets the items that are registered under this mod's ID.
      Returns:
      A list of items that were registered under this mod's ID.
    • getItemStacks

      public Collection<IItemStack> getItemStacks()
      Gets the ItemStacks that are registered under this mod's ID.
      Returns:
      A list of ItemStacks that were registered under this mod's ID.
    • getPotions

      public Collection<net.minecraft.world.item.alchemy.Potion> getPotions()
      Gets the potions that are registered under this mod's ID.
      Returns:
      A list of potions that were registered under this mod's ID.
    • getAttributes

      public Collection<net.minecraft.world.entity.ai.attributes.Attribute> getAttributes()
      Gets the attributes that are registered under this mod's ID.
      Returns:
      A list of attributes that were registered under this mod's ID.
    • getFluids

      public Collection<net.minecraft.world.level.material.Fluid> getFluids()
      Gets the fluids that are registered under this mod's ID.
      Returns:
      A list of fluids that were registered under this mod's ID.
    • getEnchantments

      public Collection<net.minecraft.world.item.enchantment.Enchantment> getEnchantments()
      Gets the enchantments that are registered under this mod's ID.
      Returns:
      A list of enchantments that were registered under this mod's ID.
    • getBlocks

      public Collection<net.minecraft.world.level.block.Block> getBlocks()
      Gets the blocks that are registered under this mod's ID.
      Returns:
      A list of blocks that were registered under this mod's ID.
    • getMobEffects

      public Collection<net.minecraft.world.effect.MobEffect> getMobEffects()
      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.
    • getVillagerProfessions

      public Collection<net.minecraft.world.entity.npc.VillagerProfession> getVillagerProfessions()
      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.
    • getSoundEvents

      public Collection<net.minecraft.sounds.SoundEvent> getSoundEvents()
      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.
    • id

      public String id()
      Gets the id (namespace) of this mod.
      Returns:
      The id (namespace) of this mod.
    • displayName

      public String displayName()
      Gets the display name of this mod.
      Returns:
      The display name of this mod.
    • version

      public String version()
      Gets the version of this mod.
      Returns:
      The version of this mod.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object