Class SpellPartCastEvent<T extends SpellPart>
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
at.minecraftschurli.mods.arsmagicalegacy.api.event.SpellPartCastEvent<T>
- Direct Known Subclasses:
SpellPartCastEvent.Component, SpellPartCastEvent.PrimaryShape, SpellPartCastEvent.SecondaryShape
Event that is fired when a particular spell part is cast. Has type-specific sub events.
In order to perform additional functionality when the spell as a whole is cast, use SpellCastEvent.
This event is not cancelable. This event is fired on the main event bus.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent that is fired when aSpellComponentis cast.static classEvent that is fired when aPrimarySpellShapeis cast.static classEvent that is fired when aSecondarySpellShapeis cast.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.LivingVisibilityEventNested 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
ConstructorsConstructorDescriptionSpellPartCastEvent(T spellPart, List<SpellModifier> modifiers, SpellCastContext context) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class SpellEvent
getSpellMethods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Constructor Details
-
SpellPartCastEvent
- Parameters:
spellPart- TheSpellPartbeing cast.modifiers- The list ofSpellModifiers used by the spell part.context- TheSpellCastContextused by the spell cast.
-
-
Method Details
-
getSpellPart
-
getModifiers
- Returns:
- The list of
SpellModifiers used by the spell part.
-
getContext
- Returns:
- The
SpellCastContextused by the spell cast.
-