Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSettings = NewSettings(&packet.ClientSettings{ Locale: "en_US", ViewDistance: 10, ChatColors: true, SkinParts: 127, MainHand: 1, })
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings interface { Locale() language.Tag // Locale of the Minecraft client. // Returns the client's view distance. This does not guarantee the client will see this many // chunks, since your servers are responsible for sending the chunks. ViewDistance() uint8 ChatMode() ChatMode // The chat setting of the client. ChatColors() bool // Whether or not the client has chat colors disabled. SkinParts() SkinParts // The parts of player skins the client will show. MainHand() MainHand // The primary hand of the client. }
Settings are the client settings the player gave us.
func NewSettings ¶
func NewSettings(packet *packet.ClientSettings) Settings
type SkinParts ¶
type SkinParts byte
func (SkinParts) LeftSleeve ¶
func (SkinParts) RightPants ¶
func (SkinParts) RightSleeve ¶
Click to show internal directories.
Click to hide internal directories.