Package com.binaris.wizardry.cca.player
Class CastCommandDataHolder
java.lang.Object
com.binaris.wizardry.cca.player.CastCommandDataHolder
- All Implemented Interfaces:
CastCommandData,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 CastCommandDataHolder
extends Object
implements CastCommandData, dev.onyxstudios.cca.api.v3.component.ComponentV3, dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the player is currently casting a spell via the cast command.voidreadFromNbt(@NotNull net.minecraft.nbt.CompoundTag tag) voidstartCastingContinuousSpell(Spell spell, SpellModifiers modifiers, int duration) Starts casting the given spell with the given modifiers.voidStops casting the current spell.voidtick()Casts the current continuous spell, fires relevant events and updates the castCommandTick field.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
-
Constructor Details
-
CastCommandDataHolder
public CastCommandDataHolder(net.minecraft.world.entity.player.Player provider)
-
-
Method Details
-
startCastingContinuousSpell
Description copied from interface:CastCommandDataStarts casting the given spell with the given modifiers.- Specified by:
startCastingContinuousSpellin interfaceCastCommandData
-
stopCastingContinuousSpell
public void stopCastingContinuousSpell()Description copied from interface:CastCommandDataStops casting the current spell.- Specified by:
stopCastingContinuousSpellin interfaceCastCommandData
-
tick
public void tick()Description copied from interface:CastCommandDataCasts the current continuous spell, fires relevant events and updates the castCommandTick field.- Specified by:
tickin interfaceCastCommandData
-
isCommandCasting
public boolean isCommandCasting()Description copied from interface:CastCommandDataReturns whether the player is currently casting a spell via the cast command.- Specified by:
isCommandCastingin interfaceCastCommandData
-
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
-