Class WarpRandomMechanic


public class WarpRandomMechanic extends MechanicComponent
Warps a random distance
  • Field Details

  • Constructor Details

    • WarpRandomMechanic

      public WarpRandomMechanic()
  • 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
    • preserveVelocity

      public boolean preserveVelocity()
    • setYaw

      public boolean setYaw()
    • setPitch

      public boolean setPitch()
    • relativeYaw

      public boolean relativeYaw()
    • relativePitch

      public boolean relativePitch()
    • warp

      public void warp(org.bukkit.entity.LivingEntity target, org.bukkit.entity.LivingEntity caster, org.bukkit.Location location, int level)