Class TerraShattererItem.ManaItemImpl
java.lang.Object
vazkii.botania.common.item.equipment.tool.terrasteel.TerraShattererItem.ManaItemImpl
- All Implemented Interfaces:
ManaItem
- Enclosing class:
TerraShattererItem
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMana(int mana) Adds mana to this item.booleancanExportManaToItem(net.minecraft.world.item.ItemStack otherStack) Can this item export mana to another item?booleancanExportManaToPool(net.minecraft.world.level.block.entity.BlockEntity pool) Can this item export mana to a mana Pool?booleancanReceiveManaFromItem(net.minecraft.world.item.ItemStack otherStack) Can this item recieve mana from another item?booleancanReceiveManaFromPool(net.minecraft.world.level.block.entity.BlockEntity pool) Can this item receive mana from a mana Pool?intgetMana()Gets the amount of mana this item containsintGets the max amount of mana this item can hold.booleanIf this item simply does not export mana at all, set this to true.
-
Constructor Details
-
ManaItemImpl
public ManaItemImpl(net.minecraft.world.item.ItemStack stack)
-
-
Method Details
-
getMana
public int getMana()Description copied from interface:ManaItemGets the amount of mana this item contains -
getMaxMana
public int getMaxMana()Description copied from interface:ManaItemGets the max amount of mana this item can hold.- Specified by:
getMaxManain interfaceManaItem
-
addMana
public void addMana(int mana) Description copied from interface:ManaItemAdds mana to this item. -
canReceiveManaFromPool
public boolean canReceiveManaFromPool(net.minecraft.world.level.block.entity.BlockEntity pool) Description copied from interface:ManaItemCan this item receive mana from a mana Pool?- Specified by:
canReceiveManaFromPoolin interfaceManaItem- Parameters:
pool- The pool it's receiving mana from, can be casted to ManaPool.- See Also:
-
canReceiveManaFromItem
public boolean canReceiveManaFromItem(net.minecraft.world.item.ItemStack otherStack) Description copied from interface:ManaItemCan this item recieve mana from another item?- Specified by:
canReceiveManaFromItemin interfaceManaItem
-
canExportManaToPool
public boolean canExportManaToPool(net.minecraft.world.level.block.entity.BlockEntity pool) Description copied from interface:ManaItemCan this item export mana to a mana Pool?- Specified by:
canExportManaToPoolin interfaceManaItem- Parameters:
pool- The pool it's exporting mana to, can be casted to ManaPool.- See Also:
-
canExportManaToItem
public boolean canExportManaToItem(net.minecraft.world.item.ItemStack otherStack) Description copied from interface:ManaItemCan this item export mana to another item?- Specified by:
canExportManaToItemin interfaceManaItem
-
isNoExport
public boolean isNoExport()Description copied from interface:ManaItemIf this item simply does not export mana at all, set this to true. This is used to skip items that contain mana but can't export it when drawing the mana bar above the XP bar.- Specified by:
isNoExportin interfaceManaItem
-