Class ParticleProjectileMechanic

All Implemented Interfaces:
ProjectileCallback

public class ParticleProjectileMechanic extends MechanicComponent implements ProjectileCallback
Heals each target
  • Constructor Details

    • ParticleProjectileMechanic

      public ParticleProjectileMechanic()
  • Method Details

    • 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:
      playPreview in class EffectComponent
      Parameters:
      caster - caster reference
      level - the level of the skill to create for
      targets - location to base location on
      step - the current progress of the indicator
    • getKey

      public String getKey()
      Specified by:
      getKey in class EffectComponent
    • execute

      public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force)
      Executes the component
      Specified by:
      execute in class EffectComponent
      Parameters:
      caster - caster of the skill
      level - level of the skill
      targets - targets to apply to
      force -
      Returns:
      true if applied to something, false otherwise
    • callback

      public void callback(CustomProjectile projectile, org.bukkit.entity.LivingEntity hit)
      The callback for the projectiles that applies child components
      Specified by:
      callback in interface ProjectileCallback
      Parameters:
      projectile - projectile calling back for
      hit - the entity hit by the projectile, if any