Class SingularTask

java.lang.Object
xyz.xenondevs.particle.task.ParticleTask
xyz.xenondevs.particle.task.SingularTask

public final class SingularTask extends ParticleTask
A ParticleTask implementation that only targets a single Player.
Author:
ByteZ
See Also:
  • Constructor Details

    • SingularTask

      public SingularTask(List<Object> packets, int tickDelay, UUID target)
      Creates a new SingularTask.
      Parameters:
      packets - List of packets
      tickDelay - The delay of ticks between each execution
      target - The UUID of the target Player
    • SingularTask

      public SingularTask(List<Object> packets, int tickDelay, org.bukkit.entity.Player target)
      Creates a new SingularTask.
      Parameters:
      packets - List of packets
      tickDelay - The delay of ticks between each execution
      target - The target Player
  • Method Details

    • getTargetPlayers

      public List<org.bukkit.entity.Player> getTargetPlayers()
      Gets a singleton list with the target Player or an empty list if the player isn't online.
      Specified by:
      getTargetPlayers in class ParticleTask
      Returns:
      a singleton list with the target Player