Class SpellEvent.BurnoutCost
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent.BurnoutCost
- Enclosing class:
- SpellEvent
Event to modify the burnout cost of the spell.
-
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.ReagentCostNested 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.LivingTickEvent, 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.SizeNested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBurnoutCost(net.minecraft.world.entity.LivingEntity entity, ISpell spell, float burnout) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatvoidsetBurnout(float burnout) Sets the burnout cost.Methods inherited from class com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent
getSpellMethods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntityMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Constructor Details
-
BurnoutCost
-
-
Method Details
-
getModifiedBurnout
public float getModifiedBurnout()- Returns:
- The burnout cost, containing all previous modifications.
-
getBurnout
public float getBurnout()- Returns:
- The unmodified burnout cost.
-
setBurnout
public void setBurnout(float burnout) Sets the burnout cost.- Parameters:
burnout- The new value for the burnout cost.
-