Class SpellEvent.ModifyStats

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.ModifyStats
Enclosing class:
SpellEvent

public static final class SpellEvent.ModifyStats extends SpellEvent
Event to modify the value of spell stats. This is called whenever a stat modifier is checked, meaning that it may be called multiple times per spell cast. This is called after spell modifiers have already been considered, meaning that the modified value already contains the modifier values.
  • Nested Class Summary

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final float
     
    float
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModifyStats(net.minecraft.world.entity.LivingEntity entity, ISpell spell, ISpellPartStat stat, float base, float modified)
     
  • 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
  • Field Details

    • stat

      public final ISpellPartStat stat
    • base

      public final float base
    • modified

      public float modified
  • Constructor Details

    • ModifyStats

      public ModifyStats(net.minecraft.world.entity.LivingEntity entity, ISpell spell, ISpellPartStat stat, float base, float modified)