Package com.binaris.wizardry.cca.player
Class SpellManagerDataHolder
java.lang.Object
com.binaris.wizardry.cca.player.SpellManagerDataHolder
- All Implemented Interfaces:
SpellManagerData,dev.onyxstudios.cca.api.v3.component.Component,dev.onyxstudios.cca.api.v3.component.ComponentV3,dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent,dev.onyxstudios.cca.api.v3.component.sync.ComponentPacketWriter,dev.onyxstudios.cca.api.v3.component.sync.PlayerSyncPredicate
public class SpellManagerDataHolder
extends Object
implements SpellManagerData, dev.onyxstudios.cca.api.v3.component.ComponentV3, dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandiscoverSpell(Spell spell) <T> TgetVariable(ISpellVar<T> var) booleanhasSpellBeenDiscovered(Spell spell) voidreadFromNbt(@NotNull net.minecraft.nbt.CompoundTag tag) <T> voidsetVariable(ISpellVar<? super T> variable, T value) voidsync()booleanundiscoverSpell(Spell spell) voidwriteToNbt(@NotNull net.minecraft.nbt.CompoundTag tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent
applySyncPacket, shouldSyncWith, writeSyncPacketMethods inherited from interface dev.onyxstudios.cca.api.v3.component.Component
equals
-
Field Details
-
storedVariables
-
spellData
-
spellsDiscovered
-
-
Constructor Details
-
SpellManagerDataHolder
public SpellManagerDataHolder(net.minecraft.world.entity.player.Player provider)
-
-
Method Details
-
sync
public void sync()- Specified by:
syncin interfaceSpellManagerData
-
getVariable
- Specified by:
getVariablein interfaceSpellManagerData
-
setVariable
- Specified by:
setVariablein interfaceSpellManagerData
-
getSpellData
- Specified by:
getSpellDatain interfaceSpellManagerData
-
hasSpellBeenDiscovered
- Specified by:
hasSpellBeenDiscoveredin interfaceSpellManagerData
-
discoverSpell
- Specified by:
discoverSpellin interfaceSpellManagerData
-
undiscoverSpell
- Specified by:
undiscoverSpellin interfaceSpellManagerData
-
readFromNbt
public void readFromNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-
writeToNbt
public void writeToNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
writeToNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-