Class SpellEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
at.minecraftschurli.mods.arsmagicalegacy.api.event.SpellEvent
Direct Known Subclasses:
ManaBurnoutCostEvent, SpellCastEvent, SpellPartCastEvent

public abstract class SpellEvent extends net.neoforged.neoforge.event.entity.living.LivingEvent
The base class for all events involving a spell.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent

    net.neoforged.neoforge.event.entity.living.LivingEvent.LivingJumpEvent, net.neoforged.neoforge.event.entity.living.LivingEvent.LivingVisibilityEvent

    Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent

    net.neoforged.neoforge.event.entity.EntityEvent.EnteringSection, net.neoforged.neoforge.event.entity.EntityEvent.EntityConstructing, net.neoforged.neoforge.event.entity.EntityEvent.Size
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpellEvent(net.minecraft.world.entity.LivingEntity entity, Spell spell)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent

    getEntity

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpellEvent

      public SpellEvent(net.minecraft.world.entity.LivingEntity entity, Spell spell)
  • Method Details

    • getSpell

      public Spell getSpell()
      Returns:
      The involved spell.