Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerListEntry ¶
type PlayerListEntry struct { // UUID is the UUID of the player as sent in the Login packet when the client joined the server. It must // match this UUID exactly for the correct XBOX Live icon to show up in the list. UUID uuid.UUID // EntityUniqueID is the unique entity ID of the player. This ID typically stays consistent during the // lifetime of a world, but servers often send the runtime ID for this. EntityUniqueID int64 // Username is the username that is shown in the player list of the player that obtains a PlayerList // packet with this entry. It does not have to be the same as the actual username of the player. Username string // XUID is the XBOX Live user ID of the player, which will remain consistent as long as the player is // logged in with the XBOX Live account. XUID string // PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for // Nintendo Switch). It is otherwise an empty string, and is used to decide which players are able to // chat with each other. PlatformChatID string // BuildPlatform is the platform of the player as sent by that player in the Login packet. BuildPlatform int32 // Skin is the skin of the player that should be added to the player list. Once sent here, it will not // have to be sent again. Skin protocol.Skin // Teacher is a Minecraft: Education Edition field. It specifies if the player to be added to the player // list is a teacher. Teacher bool // Host specifies if the player that is added to the player list is the host of the game. Host bool }
PlayerListEntry is an entry found in the PlayerList packet. It represents a single player using the UUID found in the entry, and contains several properties such as the skin.
func (*PlayerListEntry) Marshal ¶
func (x *PlayerListEntry) Marshal(r protocol.IO)
Marshal encodes/decodes a PlayerListEntry.
Click to show internal directories.
Click to hide internal directories.