Class SuppliedTask

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

public final class SuppliedTask extends ParticleTask
A ParticleTask implementation using a Supplier to retrieve the target Players. The Supplier is called each time getTargetPlayers() is called.
Author:
ByteZ
See Also:
  • Constructor Details

    • SuppliedTask

      public SuppliedTask(List<Object> packets, int tickDelay, Supplier<Collection<org.bukkit.entity.Player>> supplier)
      Creates a new SuppliedTask.
      Parameters:
      packets - List of packets
      tickDelay - The delay of ticks between each execution
      supplier - The Supplier used to retrieve the Collection of target Players
  • Method Details