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 enumstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) 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) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.entity.LivingEntity@Nullable net.minecraft.core.Directionnet.minecraft.world.level.LevelgetLevel()getSpell()doublegetX()This is could be NaN if there's no posdoublegetY()This is could be NaN if there's no posdoublegetZ()This is could be NaN if there's no posbooleanvoidsetCanceled(boolean cancel) 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
public SpellCastEvent(SpellCastEvent.Source source, Spell spell, net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) -
SpellCastEvent
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)
-
-
Method Details
-
getSpell
-
getModifiers
-
getSource
-
getCaster
@Nullable public @Nullable net.minecraft.world.entity.LivingEntity getCaster() -
getLevel
public net.minecraft.world.level.Level getLevel() -
getX
public double getX()This is could be NaN if there's no pos -
getY
public double getY()This is could be NaN if there's no pos -
getZ
public double getZ()This is could be NaN if there's no pos -
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
-