Class CastCommandDataHolder
java.lang.Object
com.binaris.wizardry.capabilities.CastCommandDataHolder
- All Implemented Interfaces:
CastCommandData,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class CastCommandDataHolder
extends Object
implements net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, CastCommandData
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.capabilities.Capability<CastCommandDataHolder>static final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(@NotNull CastCommandDataHolder old) voiddeserializeNBT(net.minecraft.nbt.CompoundTag tag) intintgetSpell()booleannet.minecraft.nbt.CompoundTagvoidstartCastingContinuousSpell(Spell spell, SpellModifiers modifiers, int duration) voidvoidsync()voidtick()
-
Field Details
-
LOCATION
public static final net.minecraft.resources.ResourceLocation LOCATION -
INSTANCE
public static final net.minecraftforge.common.capabilities.Capability<CastCommandDataHolder> INSTANCE
-
-
Constructor Details
-
CastCommandDataHolder
public CastCommandDataHolder(net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
sync
public void sync() -
startCastingContinuousSpell
- Specified by:
startCastingContinuousSpellin interfaceCastCommandData
-
stopCastingContinuousSpell
public void stopCastingContinuousSpell()- Specified by:
stopCastingContinuousSpellin interfaceCastCommandData
-
tick
public void tick()- Specified by:
tickin interfaceCastCommandData
-
isCommandCasting
public boolean isCommandCasting()- Specified by:
isCommandCastingin interfaceCastCommandData
-
getSpell
- Specified by:
getSpellin interfaceCastCommandData
-
getModifiers
- Specified by:
getModifiersin interfaceCastCommandData
-
getCastingTick
public int getCastingTick()- Specified by:
getCastingTickin interfaceCastCommandData
-
getDuration
public int getDuration()- Specified by:
getDurationin interfaceCastCommandData
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
deserializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
copyFrom
-