Class TargetedTask

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

public final class TargetedTask extends ParticleTask
A ParticleTask implementation that targets a provided Collection of Players.

Please Note that players that leave the server aren't automatically removed from the targets' collection.

Author:
ByteZ
See Also:
  • Constructor Details

    • TargetedTask

      public TargetedTask(List<Object> packets, int tickDelay, Collection<org.bukkit.entity.Player> targets)
      Creates a new TargetedTask.
      Parameters:
      packets - List of packets
      tickDelay - The delay of ticks between each execution
      targets - A Collection of Players that will receive the particles.
  • Method Details