java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent.Cast
Direct Known Subclasses:
SpellEvent.Cast.Component, SpellEvent.Cast.Post, SpellEvent.Cast.Pre
Enclosing class:
SpellEvent

public abstract static sealed class SpellEvent.Cast extends SpellEvent permits SpellEvent.Cast.Pre, SpellEvent.Cast.Post, SpellEvent.Cast.Component
Event that fires when a spell is cast. Has Pre and Post sub events.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Event that fires for each spell component before it gets invoked.
    static final class 
    Event that fires after a spell is cast.
    static final class 
    Event that fires before a spell is cast.

    Nested classes/interfaces inherited from class com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent

    SpellEvent.BurnoutCost, SpellEvent.Cast, SpellEvent.ManaCost, SpellEvent.ModifyStats, SpellEvent.ReagentCost

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

    net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent, net.minecraftforge.event.entity.living.LivingEvent.LivingTickEvent, net.minecraftforge.event.entity.living.LivingEvent.LivingVisibilityEvent

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

    net.minecraftforge.event.entity.EntityEvent.EnteringSection, net.minecraftforge.event.entity.EntityEvent.EntityConstructing, net.minecraftforge.event.entity.EntityEvent.Size

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

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

    Methods inherited from class com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent

    getSpell

    Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent

    getEntity

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

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

    • Cast

      public Cast(net.minecraft.world.entity.LivingEntity entity, ISpell spell)