Class CCDataHolder.Static

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

public static class CCDataHolder.Static extends CCDataHolder
  • Nested Class Summary

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

    CCDataHolder.ItemBased, CCDataHolder.Static
  • Field Summary

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

    stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    Static(net.minecraft.world.item.ItemStack stack, Function<net.minecraft.world.item.ItemStack,at.petrak.hexcasting.api.spell.SpellDatum<?>> provider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.nbt.CompoundTag
     
    boolean
    writeDatum(@Nullable at.petrak.hexcasting.api.spell.SpellDatum<?> datum, 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

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

    emptyDatum, readDatum
  • Constructor Details

    • Static

      public Static(net.minecraft.world.item.ItemStack stack, Function<net.minecraft.world.item.ItemStack,at.petrak.hexcasting.api.spell.SpellDatum<?>> provider)
  • Method Details

    • readRawDatum

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag readRawDatum()
    • writeDatum

      public boolean writeDatum(@Nullable @Nullable at.petrak.hexcasting.api.spell.SpellDatum<?> datum, boolean simulate)