Documentation ¶
Overview ¶
Package playerlist contains a PlayerList struct that used to manage player information.
The PlayerList contains a list of PlayerInfo which is received from server when client join. The playerlist contains every players' information of name, display name, uuid, gamemode, latency, public key, etc. And can be used to render the "TAB List". Other packages may also require playerlist to work, for example, the bot/msg package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerInfo ¶
type PlayerList ¶
type PlayerList struct {
PlayerInfos map[uuid.UUID]*PlayerInfo
}
func New ¶
func New(c *bot.Client) *PlayerList
Click to show internal directories.
Click to hide internal directories.