Class PotionProjectileMechanic
java.lang.Object
studio.magemonkey.fabled.dynamic.EffectComponent
studio.magemonkey.fabled.dynamic.mechanic.MechanicComponent
studio.magemonkey.fabled.dynamic.mechanic.PotionProjectileMechanic
Heals each target
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
children, preview, settings, skill -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallback(org.bukkit.entity.Entity entity, Collection<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 component (to be implemented)getKey()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.MechanicComponent
getTypeMethods inherited from class studio.magemonkey.fabled.dynamic.EffectComponent
cleanUp, 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:
-
DISTANCE
- See Also:
-
DURATION
- See Also:
-
WAIT_TIME
- See Also:
-
REAPPLY_DELAY
- See Also:
-
DURATION_ON_USE
- See Also:
-
RADIUS
- See Also:
-
RADIUS_ON_USE
- See Also:
-
RADIUS_PER_TICK
- See Also:
-
CLOUD_PREFIX
- See Also:
-
-
Constructor Details
-
PotionProjectileMechanic
public PotionProjectileMechanic()
-
-
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) 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
-
callback
public void callback(org.bukkit.entity.Entity entity, Collection<org.bukkit.entity.LivingEntity> hit) The callback for the projectiles that applies child components- Parameters:
entity- potion effecthit- the entity hit by the projectile, if any
-
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
-