Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "1.16.5"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Connection net.Conn Server *Server Protocol protocol.Protocol GameProtocolVersion int32 Profile auth.Profile ExpectedVerifyToken []byte EncryptionEnabled bool CompressionEnabled bool // contains filtered or unexported fields }
func (*Client) Disconnect ¶
func (*Client) EnableEncryption ¶
type Server ¶
type Server struct { Address string Port uint16 OnlineMode bool CompressionThreshold int Debug bool Verbose bool MaxOnlinePlayers int32 HandshakeHandlers map[reflect.Type]func(c *Client, pkt Packet) error StatusHandlers map[reflect.Type]func(c *Client, pkt Packet) error LoginHandlers map[reflect.Type]func(c *Client, pkt Packet) error PlayHandlers map[reflect.Type]func(c *Client, pkt Packet) error DisconnectHandler func(c *Client, reason string) // contains filtered or unexported fields }
func (*Server) GenerateKeys ¶
func (s *Server) GenerateKeys()
func (*Server) PrivateKey ¶
func (s *Server) PrivateKey() *rsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.