Class ConjureDataHolder

java.lang.Object
dev.onyxstudios.cca.api.v3.item.ItemComponent
com.binaris.wizardry.cca.stack.ConjureDataHolder
All Implemented Interfaces:
ConjureData, dev.onyxstudios.cca.api.v3.component.Component, dev.onyxstudios.cca.api.v3.item.ItemTagInvalidationListener

public class ConjureDataHolder extends dev.onyxstudios.cca.api.v3.item.ItemComponent implements ConjureData
Here for loading/storing conjure item data. CCA components rely on NBT storage, so this could be easily synced and persisted without any problems. This is also why there's no fields here; all data is stored in the ItemStack's NBT.
  • Field Summary

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

    stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConjureDataHolder(net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    long
     
    boolean
     
    void
    setDuration(int duration)
     
    void
    setExpireTime(long expireTime)
     
    void
    setSummoned(boolean summoned)
     

    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 com.binaris.wizardry.api.content.data.ConjureData

    getRemainingLifetime, hasExpired
  • Constructor Details

    • ConjureDataHolder

      public ConjureDataHolder(net.minecraft.world.item.ItemStack stack)
  • Method Details