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.static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.EntrybuildEntryManually(GeyserSession session, UUID uuid, String username, long geyserId, org.cloudburstmc.protocol.bedrock.data.skin.SerializedSkin skin, Color color) static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.EntryforSkullPlayerEntity(AvatarEntity entity, org.cloudburstmc.protocol.bedrock.data.skin.SerializedSkin skin) static voidsendSkinUsingPlayerList(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry entry, AvatarEntity entity, boolean persistent)
-
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
-
forSkullPlayerEntity
public static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry forSkullPlayerEntity(AvatarEntity entity, org.cloudburstmc.protocol.bedrock.data.skin.SerializedSkin skin) -
buildEntryManually
public static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry buildEntryManually(GeyserSession session, UUID uuid, String username, long geyserId, org.cloudburstmc.protocol.bedrock.data.skin.SerializedSkin skin, Color color) -
sendSkinUsingPlayerList
public static void sendSkinUsingPlayerList(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry entry, AvatarEntity entity, boolean persistent)
-