Class CCHexHolder.ItemBased

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

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

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

    CCHexHolder.ItemBased
  • 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 owner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    @Nullable List<at.petrak.hexcasting.api.spell.SpellDatum<?>>
    getHex(net.minecraft.server.level.ServerLevel level)
     
    boolean
     
    void
    writeHex(List<at.petrak.hexcasting.api.spell.SpellDatum<?>> patterns, 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
  • Constructor Details

    • ItemBased

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

    • canDrawManaFromInventory

      public boolean canDrawManaFromInventory()
    • hasHex

      public boolean hasHex()
    • getHex

      @Nullable public @Nullable List<at.petrak.hexcasting.api.spell.SpellDatum<?>> getHex(net.minecraft.server.level.ServerLevel level)
    • writeHex

      public void writeHex(List<at.petrak.hexcasting.api.spell.SpellDatum<?>> patterns, int mana)
    • clearHex

      public void clearHex()