Package com.sucy.skill.dynamic.condition
Class PermissionCondition
java.lang.Object
com.sucy.skill.dynamic.EffectComponent
com.sucy.skill.dynamic.condition.ConditionComponent
com.sucy.skill.dynamic.condition.PermissionCondition
-
Field Summary
Fields inherited from class com.sucy.skill.dynamic.EffectComponent
children, hasPreview, previewType, settings, skill -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sucy.skill.dynamic.condition.ConditionComponent
getTypeMethods inherited from class com.sucy.skill.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, hasPreview, lastPassed, load, parseValues, playPreview, save
-
Constructor Details
-
PermissionCondition
public PermissionCondition()
-
-
Method Details
-
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
-