Class RayCastTarget

java.lang.Object
org.woftnw.eof.ability.effect.target.RangedTarget
org.woftnw.eof.ability.effect.target.RayCastTarget
All Implemented Interfaces:
Target

public class RayCastTarget extends RangedTarget
Targets users hit by a ray cast.
  • Constructor Details

    • RayCastTarget

      public RayCastTarget(float range)
      Create a RayCastTarget.
      Parameters:
      range - The maximum range of the effect.
  • Method Details

    • getTargets

      public Collection<org.bukkit.entity.LivingEntity> getTargets(@NonNull org.bukkit.entity.Player user)
      Description copied from interface: Target
      Get the targets of this effect.
      Parameters:
      user - The effect user.
      Returns:
      The Players affected.
    • getTextColor

      public net.kyori.adventure.text.format.TextColor getTextColor()