Class SpellEvent
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
- Direct Known Subclasses:
SpellEvent.BurnoutCost,SpellEvent.Cast,SpellEvent.ManaCost,SpellEvent.ReagentCost
public abstract class SpellEvent
extends net.minecraftforge.event.entity.living.LivingEvent
The base class for all spell events.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEvent to modify the burnout cost of the spell.static classEvent that fires when a spell is cast.static classEvent that fires when mana cost is retrieved.static final classEvent to modify the reagents required by the spell.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.LivingVisibilityEventNested 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.SizeNested 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 -
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
SpellEvent
-
-
Method Details
-
getSpell
- Returns:
- The spell of the event.
-