Class RayCastTarget
java.lang.Object
org.woftnw.eof.ability.effect.target.RangedTarget
org.woftnw.eof.ability.effect.target.RayCastTarget
- All Implemented Interfaces:
Target
Targets users hit by a ray cast.
-
Field Summary
Fields inherited from class RangedTarget
RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.bukkit.entity.LivingEntity> getTargets(@NonNull org.bukkit.entity.Player user) Get the targets of this effect.net.kyori.adventure.text.format.TextColor
-
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:TargetGet the targets of this effect.- Parameters:
user- The effect user.- Returns:
- The Players affected.
-
getTextColor
public net.kyori.adventure.text.format.TextColor getTextColor()
-