Class SpellCastEvent.Post
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.SpellCastEvent
at.minecraftschurli.mods.arsmagicalegacy.api.event.SpellCastEvent.Post
- Enclosing class:
SpellCastEvent
Fired after the spell is cast, mana and burnout have been modified (if applicable),
and magic xp has been awarded (if applicable).
-
Nested Class Summary
Nested classes/interfaces inherited from class SpellCastEvent
SpellCastEvent.Post, SpellCastEvent.PreNested 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
Constructors -
Method Summary
Methods inherited from class SpellCastEvent
getBurnout, getManaMethods inherited from class SpellEvent
getSpellMethods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Constructor Details
-
Post
public Post(net.minecraft.world.entity.LivingEntity entity, Spell spell, double mana, double burnout, boolean consume, boolean awardXp)
-
-
Method Details
-
isConsume
public boolean isConsume()- Returns:
- Whether to consume mana and burnout.
-
isAwardXp
public boolean isAwardXp()- Returns:
- Whether to award magic xp.
-