Class PlayerListUtils

java.lang.Object
org.geysermc.geyser.util.PlayerListUtils

public class PlayerListUtils extends Object
  • 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 session
      entries - the list of player list packet entries to send
      action - 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)
    • shouldLimitPlayerListEntries

      public static boolean shouldLimitPlayerListEntries(GeyserSession session)
      Whether Geyser should limit the player list entries shown to the amount of players actually displayed / near the player Avoids client crashes when opening the chat on playstation consoles