java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent
Direct Known Subclasses:
SpellEvent.BurnoutCost, SpellEvent.Cast, SpellEvent.ManaCost, SpellEvent.ModifyStats, SpellEvent.ReagentCost

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Event to modify the burnout cost of the spell.
    static class 
    Event that fires when a spell is cast.
    static class 
    Event that fires when mana cost is retrieved.
    static final class 
    Event to modify the value of spell stats.
    static final class 
    Event to modify the reagents required by the spell.

    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.LivingTickEvent, 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

    Nested classes/interfaces inherited from class net.neoforged.bus.api.Event

    net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
     

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

    getEntity

    Methods inherited from class net.neoforged.bus.api.Event

    getResult, hasResult, setResult

    Methods inherited from class java.lang.Object

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

    • SpellEvent

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

    • getSpell

      public ISpell getSpell()
      Returns:
      The spell of the event.