Class PotionProjectileMechanic


public class PotionProjectileMechanic extends MechanicComponent
Heals each target
  • Constructor Details

    • PotionProjectileMechanic

      public PotionProjectileMechanic()
  • Method Details

    • 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(org.bukkit.entity.Entity entity, Collection<org.bukkit.entity.LivingEntity> hit)
      The callback for the projectiles that applies child components
      Parameters:
      entity - potion effect
      hit - the entity hit by the projectile, if any