Package at.petrak.hexcasting.fabric.cc
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
-
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 -
Method Summary
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, writeToNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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()
-