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

public abstract class SpellCastEvent extends Object implements IWizardryEvent
  • Constructor Details

  • Method Details

    • getSpell

      public Spell getSpell()
    • getModifiers

      public SpellModifiers getModifiers()
    • getSource

      public SpellCastEvent.Source 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:
      isCanceled in interface IWizardryEvent
    • setCanceled

      public void setCanceled(boolean cancel)
      Specified by:
      setCanceled in interface IWizardryEvent