Class ProjectileMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.ProjectileMechanic
Heals each target
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class studio.magemonkey.fabled.dynamic.EffectComponentchildren, preview, settings, skill
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcallback(org.bukkit.entity.Projectile projectile, org.bukkit.entity.LivingEntity hit) The callback for the projectiles that applies child componentsbooleanexecute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the componentgetKey()voidplayPreview(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.mechanic.MechanicComponentgetTypeMethods inherited from class studio.magemonkey.fabled.dynamic.EffectComponentcleanUp, doCleanUp, execute, executeChildren, filter, getInstanceKey, getNum, getSettings, getSkillData, isPreviewEnabled, lastPassed, load, parseValues, playChildrenPreviews, save
- 
Field Details- 
HOMING- See Also:
 
- 
HOMING_TARGET- See Also:
 
- 
HOMING_DIST- See Also:
 
- 
REMEMBER- See Also:
 
- 
CORRECTION- See Also:
 
- 
WALL- See Also:
 
 
- 
- 
Constructor Details- 
ProjectileMechanicpublic ProjectileMechanic()
 
- 
- 
Method Details- 
getKey- Specified by:
- getKeyin class- EffectComponent
 
- 
executepublic boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force) Executes the component- Specified by:
- executein class- EffectComponent
- Parameters:
- caster- caster of the skill
- level- level of the skill
- targets- targets to apply to
- force- Whether this call is being forced
- Returns:
- true if applied to something, false otherwise
 
- 
callbackpublic void callback(org.bukkit.entity.Projectile projectile, org.bukkit.entity.LivingEntity hit) The callback for the projectiles that applies child components- Parameters:
- projectile- projectile calling back for
- hit- the entity hit by the projectile, if any
 
- 
playPreviewpublic 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 class- EffectComponent
- Parameters:
- onPreviewStop-- Listof- Runnables to add to
- caster- caster reference
- level- the level of the skill to preview for
- targetSupplier- targets to preview on
 
 
-