Class StatMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.StatMechanic
Applies a flag to each target
-
Field Summary
Fields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, settings, skill
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
getType
Methods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, load, parseValues, playChildrenPreviews, playPreview, save
-
Constructor Details
-
StatMechanic
public StatMechanic()
-
-
Method Details
-
getKey
- Specified by:
getKey
in classEffectComponent
-
doCleanUp
protected void doCleanUp(org.bukkit.entity.LivingEntity user) - Overrides:
doCleanUp
in classEffectComponent
-
execute
public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the component- Specified by:
execute
in classEffectComponent
- Parameters:
caster
- caster of the skilllevel
- level of the skilltargets
- targets to apply toforce
-- Returns:
- true if applied to something, false otherwise
-