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 Details

    • CastCommandDataHolder

      public CastCommandDataHolder(net.minecraft.world.entity.player.Player provider)
  • Method Details

    • startCastingContinuousSpell

      public void startCastingContinuousSpell(Spell spell, SpellModifiers modifiers, int duration)
      Specified by:
      startCastingContinuousSpell in interface CastCommandData
    • stopCastingContinuousSpell

      public void stopCastingContinuousSpell()
      Specified by:
      stopCastingContinuousSpell in interface CastCommandData
    • tick

      public void tick()
      Specified by:
      tick in interface CastCommandData
    • isCommandCasting

      public boolean isCommandCasting()
      Specified by:
      isCommandCasting in interface CastCommandData
    • readFromNbt

      public void readFromNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Specified by:
      readFromNbt in interface dev.onyxstudios.cca.api.v3.component.Component
    • writeToNbt

      public void writeToNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Specified by:
      writeToNbt in interface dev.onyxstudios.cca.api.v3.component.Component