Package com.sucy.skill.dynamic.mechanic
Class TriggerMechanic
java.lang.Object
com.sucy.skill.dynamic.EffectComponent
com.sucy.skill.dynamic.mechanic.MechanicComponent
com.sucy.skill.dynamic.mechanic.TriggerMechanic
ProSkillAPI © 2023
com.sucy.skill.dynamic.mechanic.TriggerMechanic
-
Field Summary
Fields inherited from class com.sucy.skill.dynamic.EffectComponent
children, hasPreview, previewType, settings, skill -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the component (to be implemented)getKey()voidload(DynamicSkill skill, mc.promcteam.engine.mccore.config.parse.DataSection dataSection) Loads component data from the configurationMethods inherited from class com.sucy.skill.dynamic.mechanic.MechanicComponent
getTypeMethods inherited from class com.sucy.skill.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, hasPreview, lastPassed, parseValues, playPreview, save
-
Constructor Details
-
TriggerMechanic
public TriggerMechanic()
-
-
Method Details
-
load
public void load(DynamicSkill skill, mc.promcteam.engine.mccore.config.parse.DataSection dataSection) Description copied from class:EffectComponentLoads component data from the configuration- Overrides:
loadin classEffectComponent- Parameters:
skill- owning skill of the componentdataSection- config data to load from
-
getKey
- Specified by:
getKeyin classEffectComponent
-
execute
public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Description copied from class:EffectComponentExecutes the component (to be implemented)- Specified by:
executein 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
-