public final class ParticleUtils extends Object
Note: While not recommended, these methods can also be used with non particle packets.
| Constructor and Description |
|---|
ParticleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendBulk(Collection<Object> packets)
Sends the given
Collection of packets to every player that is currently on
the server. |
static void |
sendBulk(Collection<Object> packets,
Collection<org.bukkit.entity.Player> players)
Sends the given
Collection of packets to the target players
while caching the PlayerConnections instead of calling the ConnectionCache
for each packet. |
static void |
sendBulk(Collection<Object> packets,
org.bukkit.entity.Player player)
Sends the given
Collection of packets to the target player
while caching the PlayerConnection in a local variable instead of
calling the ConnectionCache for each packet. |
static void |
sendBulkBuilders(Collection<ParticleBuilder> builders)
Converts the given
Collection of ParticleBuilders
to packets and sends them to all players that are currently on the server. |
static void |
sendBulkBuilders(Collection<ParticleBuilder> builders,
Collection<org.bukkit.entity.Player> players)
Converts the given
Collection of ParticleBuilders
to packets and sends them to the target players. |
static void |
sendBulkBuilders(Collection<ParticleBuilder> builders,
org.bukkit.entity.Player player)
Converts the given
Collection of ParticleBuilders
to packets and sends them to the target player. |
public static void sendBulk(Collection<Object> packets, org.bukkit.entity.Player player)
Collection of packets to the target player
while caching the PlayerConnection in a local variable instead of
calling the ConnectionCache for each packet.packets - the packets that should be sent to the playerplayer - the target Player that should receive the packetspublic static void sendBulk(Collection<Object> packets, Collection<org.bukkit.entity.Player> players)
Collection of packets to the target players
while caching the PlayerConnections instead of calling the ConnectionCache
for each packet.packets - the packets that should be sent to the playersplayers - the target Players that should receive the packetspublic static void sendBulk(Collection<Object> packets)
Collection of packets to every player that is currently on
the server. Also caches the PlayerConnections instead of calling the ConnectionCache
for each packet.packets - the packets that should be sentpublic static void sendBulkBuilders(Collection<ParticleBuilder> builders, org.bukkit.entity.Player player)
Collection of ParticleBuilders
to packets and sends them to the target player. Also caches the PlayerConnection
in a local variable instead of calling the ConnectionCache for each packet.builders - the ParticleBuilders that should be converted and sent to the playerplayer - the target Player that should receive the packetspublic static void sendBulkBuilders(Collection<ParticleBuilder> builders, Collection<org.bukkit.entity.Player> players)
Collection of ParticleBuilders
to packets and sends them to the target players. Also caches the PlayerConnections
in a local variable instead of calling the ConnectionCache for each packet.builders - the ParticleBuilders that should be converted and sent to the playersplayers - the target Players that should receive the packetspublic static void sendBulkBuilders(Collection<ParticleBuilder> builders)
Collection of ParticleBuilders
to packets and sends them to all players that are currently on the server. Also
caches the PlayerConnections in a local variable instead of calling the ConnectionCache for each packet.builders - the ParticleBuilders that should be converted and sent to the playersCopyright © 2021. All rights reserved.