Class WarpValueMechanic


public class WarpValueMechanic extends MechanicComponent
Applies a flag to each target
  • Field Details

  • Constructor Details

    • WarpValueMechanic

      public WarpValueMechanic()
  • 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
    • playPreview

      public void playPreview(List<Runnable> onPreviewStop, org.bukkit.entity.Player caster, int level, Supplier<List<org.bukkit.entity.LivingEntity>> targetSupplier)
      Description copied from class: EffectComponent
      Starts the component's preview effects. Removal of any registered listeners, tasks, entities, or other temporary effects should be included in a Runnable added to the provided List.
      Overrides:
      playPreview in class EffectComponent
      Parameters:
      onPreviewStop - List of Runnables to add to
      caster - caster reference
      level - the level of the skill to preview for
      targetSupplier - targets to preview on
    • 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)