Class CCManaHolder.ItemBased

java.lang.Object
dev.onyxstudios.cca.api.v3.item.ItemComponent
at.petrak.hexcasting.fabric.cc.CCManaHolder
at.petrak.hexcasting.fabric.cc.CCManaHolder.ItemBased
All Implemented Interfaces:
at.petrak.hexcasting.api.addldata.ManaHolder, dev.onyxstudios.cca.api.v3.component.Component, dev.onyxstudios.cca.api.v3.item.ItemTagInvalidationListener
Enclosing class:
CCManaHolder

public static class CCManaHolder.ItemBased extends CCManaHolder
  • Nested Class Summary

    Nested classes/interfaces inherited from class at.petrak.hexcasting.fabric.cc.CCManaHolder

    CCManaHolder.ItemBased, CCManaHolder.Static
  • Field Summary

    Fields inherited from class dev.onyxstudios.cca.api.v3.item.ItemComponent

    stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemBased(net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    boolean
     
    int
     
    int
     
    int
     
    void
    setMana(int mana)
     

    Methods inherited from class dev.onyxstudios.cca.api.v3.item.ItemComponent

    equals, getBoolean, getCompound, getDouble, getFloat, getInt, getKeys, getList, getList, getLong, getOrCreateRootTag, getRootTag, getRootTagKey, getString, getTag, getTag, getTag, getUuid, hashCode, hasTag, hasTag, hasTag, onTagInvalidated, putBoolean, putCompound, putDouble, putFloat, putInt, putList, putLong, putString, putUuid, readFromNbt, remove, wrapFactory, writeToNbt

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface at.petrak.hexcasting.api.addldata.ManaHolder

    withdrawMana
  • Constructor Details

    • ItemBased

      public ItemBased(net.minecraft.world.item.ItemStack stack)
  • Method Details

    • getMana

      public int getMana()
    • getMaxMana

      public int getMaxMana()
    • setMana

      public void setMana(int mana)
    • canRecharge

      public boolean canRecharge()
    • canProvide

      public boolean canProvide()
    • getConsumptionPriority

      public int getConsumptionPriority()
    • canConstructBattery

      public boolean canConstructBattery()