Class SpellEvent.ManaCost.Pre
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.ManaCost
com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent.ManaCost.Pre
- Enclosing class:
- SpellEvent.ManaCost
Event to modify the base cost and the modifier for the mana cost.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent.ManaCost
SpellEvent.ManaCost.Post, SpellEvent.ManaCost.PreNested 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.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.LivingVisibilityEventNested 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.SizeNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetBase()floatfloatfloatvoidsetBase(float base) Sets the base mana cost.voidsetMultiplier(float multiplier) Sets the mana cost multiplier.Methods inherited from class com.github.minecraftschurlimods.arsmagicalegacy.api.event.SpellEvent
getSpellMethods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
public Pre(net.minecraft.world.entity.LivingEntity entity, ISpell spell, float base, float multiplier)
-
-
Method Details
-
getModifiedBase
public float getModifiedBase()- Returns:
- The base mana cost, containing all previous modifications.
-
getBase
public float getBase()- Returns:
- The unmodified base mana cost.
-
setBase
public void setBase(float base) Sets the base mana cost.- Parameters:
base- The new value for the base mana cost.
-
getModifiedMultiplier
public float getModifiedMultiplier()- Returns:
- The mana cost multiplier, containing all previous modifications.
-
getMultiplier
public float getMultiplier()- Returns:
- The unmodified mana cost multiplier.
-
setMultiplier
public void setMultiplier(float multiplier) Sets the mana cost multiplier.- Parameters:
multiplier- The new value for the mana cost multiplier.
-