Class TriggerMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.TriggerMechanic
Fabled © 2024
studio.magemonkey.fabled.dynamic.mechanic.TriggerMechanic
-
Field Summary
Fields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, settings, skill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the component (to be implemented)getKey()
void
load
(DynamicSkill skill, studio.magemonkey.codex.mccore.config.parse.DataSection dataSection) Loads component data from the configurationMethods inherited from class studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
getType
Methods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, parseValues, playChildrenPreviews, playPreview, save
-
Constructor Details
-
TriggerMechanic
public TriggerMechanic()
-
-
Method Details
-
load
public void load(DynamicSkill skill, studio.magemonkey.codex.mccore.config.parse.DataSection dataSection) Description copied from class:EffectComponent
Loads component data from the configuration- Overrides:
load
in classEffectComponent
- Parameters:
skill
- owning skill of the componentdataSection
- config data to load from
-
getKey
- Specified by:
getKey
in classEffectComponent
-
execute
public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Description copied from class:EffectComponent
Executes the component (to be implemented)- Specified by:
execute
in classEffectComponent
- Parameters:
caster
- caster of the skilllevel
- level of the skilltargets
- targets to execute onforce
- whether skill should be forced- Returns:
- true if executed, false if conditions not met
-