Class ConditionComponent
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.condition.ConditionComponent
- Direct Known Subclasses:
ActionBarCondition,AirCondition,AltitudeCondition,ArmorCondition,AttackIndicatorCondition,AttributeCondition,BiomeCondition,BlockCondition,BlockingCondition,BurningCondition,CastLevelCondition,CeilingCondition,ChanceCondition,ClassCondition,ClassLevelCondition,ColorCondition,CombatCondition,CrouchCondition,DirectionCondition,DistanceCondition,ElevationCondition,ElseCondition,EntityTypeCondition,FireCondition,FlagCondition,FoodCondition,GlideCondition,GroundCondition,HealthCondition,InventoryCondition,ItemCondition,LightCondition,LoreCondition,ManaCondition,MoneyCondition,MoonCondition,MountedCondition,MountingCondition,MythicMobTypeCondition,NameCondition,OffhandCondition,PermissionCondition,PotionCondition,SkillLevelCondition,SlotCondition,SprintCondition,StatusCondition,TimeCondition,ToolCondition,ValueCondition,ValueTextCondition,WaterCondition,WeatherCondition,WorldCondition,YawCondition
Fabled © 2024
studio.magemonkey.fabled.dynamic.condition.ConditionComponent
-
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)getType()Retrieves the type of the componentvoidplayPreview(List<Runnable> onPreviewStop, org.bukkit.entity.Player caster, int level, Supplier<List<org.bukkit.entity.LivingEntity>> targetSupplier) Starts the component's preview effects.Methods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, load, parseValues, playChildrenPreviews, 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
-
playPreview
public void playPreview(List<Runnable> onPreviewStop, org.bukkit.entity.Player caster, int level, Supplier<List<org.bukkit.entity.LivingEntity>> targetSupplier) Starts the component's preview effects. Removal of any registered listeners, tasks, entities, or other temporary effects should be included in aRunnableadded to the providedList.- Overrides:
playPreviewin classEffectComponent- Parameters:
onPreviewStop-ListofRunnables to add tocaster- caster referencelevel- the level of the skill to preview fortargetSupplier- targets to preview on
-