Class CCManaHolder.Static

java.lang.Object
dev.onyxstudios.cca.api.v3.item.ItemComponent
at.petrak.hexcasting.fabric.cc.CCManaHolder
at.petrak.hexcasting.fabric.cc.CCManaHolder.Static
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.Static 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
    Static(Supplier<Integer> baseWorth, int consumptionPriority, net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    boolean
     
    int
     
    int
     
    int
     
    void
    setMana(int mana)
     
    int
    withdrawMana(int cost, boolean simulate)
     

    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
  • Constructor Details

    • Static

      public Static(Supplier<Integer> baseWorth, int consumptionPriority, 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()
    • withdrawMana

      public int withdrawMana(int cost, boolean simulate)