Package org.geysermc.geyser.util
Class PlayerListUtils
java.lang.Object
org.geysermc.geyser.util.PlayerListUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbatchSendPlayerList(GeyserSession session, List<org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry> entries, org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Action action) Sends a player list packet to the client with the given entries.
-
Constructor Details
-
PlayerListUtils
public PlayerListUtils()
-
-
Method Details
-
batchSendPlayerList
public static void batchSendPlayerList(GeyserSession session, List<org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry> entries, org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Action action) Sends a player list packet to the client with the given entries. If there are too many provided entries, multiple packets will be sent.- Parameters:
session- the Geyser sessionentries- the list of player list packet entries to sendaction- the action to perform with the player list
-