SpellEffects Class
A component class which allows an entity to be affected by various effects.
Constructor
SpellEffects
()
Item Index
Methods
applySpellEffect
(
-
spellEffect
Parameters:
-
spellEffect
MovementSpeedSpellEffect | JumpPowerSpellEffect | ResistanceSpellEffect | ShieldSpellEffect | DamageOverTimeSpellEffect | HealingOverTimeSpellEffect | AttackSpeedSpellEffect | AttackEnchantSpellEffectOnly one attack enchant can be active at a time, other spell effects stack.
clearSpellEffects
()
Removes all spell effects.
getAttackEnchantSpellEffect
()
AttackEnchantSpellEffect | Null
Returns:
AttackEnchantSpellEffect | Null:
Returns a direct reference to an attack enchant, if present, otherwise returns null.