Class SpellCastEvent.Post

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
Enclosing class:
SpellCastEvent

public static class SpellCastEvent.Post extends 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.Pre

    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.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Post(net.minecraft.world.entity.LivingEntity entity, Spell spell, double mana, double burnout, boolean consume, boolean awardXp)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     

    Methods inherited from class SpellCastEvent

    getBurnout, getMana

    Methods inherited from class SpellEvent

    getSpell

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

    getEntity

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.