public final class WorldTask extends ParticleTask
ParticleTask implementation to send particles
to every player in a specific world. This is needed
because minecraft doesn't serialize world data into the packet
which leads to particles being displayed in every world.ParticleTask| Constructor and Description |
|---|
WorldTask(List<Object> packets,
int tickDelay,
org.bukkit.World world)
Creates a new
SuppliedTask. |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.bukkit.entity.Player> |
getTargetPlayers()
Gets all players in the
world. |
getPackets, getTickDelaypublic WorldTask(List<Object> packets, int tickDelay, org.bukkit.World world)
SuppliedTask.packets - List of packetstickDelay - The delay of ticks between each executionworld - The World in which the particles should be displayed.public Collection<org.bukkit.entity.Player> getTargetPlayers()
world.getTargetPlayers in class ParticleTaskworld.Copyright © 2021. All rights reserved.