Package com.sucy.skill.dynamic.target
Class TargetComponent
java.lang.Object
com.sucy.skill.dynamic.EffectComponent
com.sucy.skill.dynamic.target.TargetComponent
- Direct Known Subclasses:
AreaTarget,ConeTarget,LinearTarget,LocationTarget,NearestTarget,OffsetTarget,RememberTarget,SelfTarget,SingleTarget
ProSkillAPI © 2023
com.sucy.skill.dynamic.target.TargetComponent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final CirclePreviewprotected static final SpherePreviewFields 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 componentgetType()Retrieves the type of the componentvoidload(DynamicSkill skill, mc.promcteam.engine.mccore.config.parse.DataSection config) Loads component data from the configurationvoidplayPreview(org.bukkit.entity.Player caster, int level, List<org.bukkit.entity.LivingEntity> targets, int step) Creates the list of indicators for the skillMethods inherited from class com.sucy.skill.dynamic.EffectComponent
cleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getKey, getNum, getSettings, getSkillData, hasPreview, lastPassed, parseValues, save
-
Field Details
-
spherePreview
-
circlePreview
-
-
Constructor Details
-
TargetComponent
public TargetComponent()
-
-
Method Details
-
getType
Description copied from class:EffectComponentRetrieves 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- Specified by:
executein classEffectComponent- Parameters:
caster- caster of the skilllevel- level of the skilltargets- targets to apply toforce-- Returns:
- true if applied to something, false otherwise
-
load
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
-
playPreview
public void playPreview(org.bukkit.entity.Player caster, int level, List<org.bukkit.entity.LivingEntity> targets, int step) Creates the list of indicators for the skill- Overrides:
playPreviewin classEffectComponent- Parameters:
caster- caster referencelevel- the level of the skill to create fortargets- location to base location onstep- the current progress of the indicator
-