Interface IManaItem

All Known Implementing Classes:
BattleMageArmorItem, CrystalItem, SageArmorItem, WandItem, WarlockArmorItem, WizardArmorItem

public interface IManaItem
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    consumeMana(net.minecraft.world.item.ItemStack stack, int mana, @Nullable net.minecraft.world.entity.LivingEntity wielder)
     
    default float
    getFullness(net.minecraft.world.item.ItemStack stack)
     
    int
    getMana(net.minecraft.world.item.ItemStack stack)
     
    int
    getManaCapacity(net.minecraft.world.item.ItemStack stack)
     
    default boolean
    isManaEmpty(net.minecraft.world.item.ItemStack stack)
     
    default boolean
    isManaFull(net.minecraft.world.item.ItemStack stack)
     
    default void
    rechargeMana(net.minecraft.world.item.ItemStack stack, int mana)
     
    void
    setMana(net.minecraft.world.item.ItemStack stack, int mana)
     
    default boolean
    showManaInWorkbench(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
  • Method Details

    • getMana

      int getMana(net.minecraft.world.item.ItemStack stack)
    • setMana

      void setMana(net.minecraft.world.item.ItemStack stack, int mana)
    • getManaCapacity

      int getManaCapacity(net.minecraft.world.item.ItemStack stack)
    • showManaInWorkbench

      default boolean showManaInWorkbench(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • consumeMana

      default void consumeMana(net.minecraft.world.item.ItemStack stack, int mana, @Nullable @Nullable net.minecraft.world.entity.LivingEntity wielder)
    • rechargeMana

      default void rechargeMana(net.minecraft.world.item.ItemStack stack, int mana)
    • isManaFull

      default boolean isManaFull(net.minecraft.world.item.ItemStack stack)
    • isManaEmpty

      default boolean isManaEmpty(net.minecraft.world.item.ItemStack stack)
    • getFullness

      default float getFullness(net.minecraft.world.item.ItemStack stack)