public final class TargetedTask extends ParticleTask
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.
ParticleTask| Constructor and Description |
|---|
TargetedTask(List<Object> packets,
int tickDelay,
Collection<org.bukkit.entity.Player> targets)
Creates a new
TargetedTask. |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.bukkit.entity.Player> |
getTargetPlayers()
Returns the pre-specified
Collection of target Players |
getPackets, getTickDelaypublic TargetedTask(List<Object> packets, int tickDelay, Collection<org.bukkit.entity.Player> targets)
TargetedTask.packets - List of packetstickDelay - The delay of ticks between each executiontargets - A Collection of Players that will receive the particles.public Collection<org.bukkit.entity.Player> getTargetPlayers()
Collection of target PlayersgetTargetPlayers in class ParticleTasktargetsCopyright © 2021. All rights reserved.