Class CastLevelCondition
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.condition.ConditionComponent
studio.magemonkey.fabled.dynamic.condition.CastLevelCondition
-
Field Summary
Fields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, 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, studio.magemonkey.codex.mccore.config.parse.DataSection config) Loads component data from the configurationMethods inherited from class studio.magemonkey.fabled.dynamic.condition.ConditionComponent
getType, playPreviewMethods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, parseValues, playChildrenPreviews, save
-
Constructor Details
-
CastLevelCondition
public CastLevelCondition()
-
-
Method Details
-
load
public void load(DynamicSkill skill, studio.magemonkey.codex.mccore.config.parse.DataSection config) Description copied from class:EffectComponentLoads component data from the configuration- Overrides:
loadin classEffectComponent- Parameters:
skill- owning skill of the componentconfig- 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:ConditionComponentExecutes the component (to be implemented)- Overrides:
executein classConditionComponent- 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
-