Package com.sucy.skill.dynamic.condition
Class ConditionComponent
java.lang.Object
com.sucy.skill.dynamic.EffectComponent
com.sucy.skill.dynamic.condition.ConditionComponent
- Direct Known Subclasses:
AltitudeCondition,ArmorCondition,AttributeCondition,BiomeCondition,BlockCondition,BurningCondition,CastLevelCondition,CeilingCondition,ChanceCondition,ClassCondition,ClassLevelCondition,CombatCondition,CrouchCondition,DirectionCondition,ElevationCondition,ElseCondition,EntityTypeCondition,FireCondition,FlagCondition,FoodCondition,GroundCondition,HealthCondition,InventoryCondition,ItemCondition,LightCondition,LoreCondition,ManaCondition,MoneyCondition,MountedCondition,MountingCondition,MythicMobTypeCondition,NameCondition,OffhandCondition,PermissionCondition,PotionCondition,SkillLevelCondition,SlotCondition,StatusCondition,TimeCondition,ToolCondition,ValueCondition,WaterCondition,WeatherCondition,WorldCondition
ProSkillAPI © 2023
com.sucy.skill.dynamic.condition.ConditionComponent
-
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.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getKey, getNum, getSettings, getSkillData, hasPreview, lastPassed, load, parseValues, playPreview, save
-
Constructor Details
-
ConditionComponent
public ConditionComponent()
-
-
Method Details
-
getType
Retrieves the type of the component- Specified by:
getTypein classEffectComponent- Returns:
- component type
-
execute
public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes 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
-