Class SpellCastEvent
java.lang.Object
com.binaris.wizardry.api.content.event.SpellCastEvent
- All Implemented Interfaces:
IWizardryEvent
- Direct Known Subclasses:
SpellCastEvent.Finish,SpellCastEvent.Post,SpellCastEvent.Pre,SpellCastEvent.Tick
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic interfacestatic enumstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSpellCastEvent(SpellCastEvent.Source source, Spell spell, CastContext context) SpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Deprecated, for removal: This API element is subject to removal in a future version.SpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.level.Level world, double x, double y, double z, net.minecraft.core.Direction direction, SpellModifiers modifiers) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.event.IWizardryEvent
canBeCanceled
-
Constructor Details
-
SpellCastEvent
-
SpellCastEvent
@Deprecated(forRemoval=true) public SpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Deprecated, for removal: This API element is subject to removal in a future version. -
SpellCastEvent
@Deprecated(forRemoval=true) public SpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.level.Level world, double x, double y, double z, net.minecraft.core.Direction direction, SpellModifiers modifiers) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getSpell
-
getContext
-
getSource
-
getCaster
@Nullable public @Nullable net.minecraft.world.entity.LivingEntity getCaster() -
getLevel
public net.minecraft.world.level.Level getLevel() -
getModifiers
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getDirection
@Nullable public @Nullable net.minecraft.core.Direction getDirection() -
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceIWizardryEvent
-
setCanceled
public void setCanceled(boolean cancel) - Specified by:
setCanceledin interfaceIWizardryEvent
-