Documentation
¶
Index ¶
- Variables
- func PacketExists(packet uint32) bool
- type Authenticator
- type Conn
- func (c *Conn) ChunkRadius() int
- func (c *Conn) ClientCacheEnabled() bool
- func (c *Conn) ClientData() login.ClientData
- func (c *Conn) Close() (err error)
- func (c *Conn) Flush() error
- func (c *Conn) IdentityData() login.IdentityData
- func (c *Conn) Latency() time.Duration
- func (c *Conn) ReadPacket() (packet.Packet, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) StartGameContext(_ context.Context, data minecraft.GameData) (err error)
- func (c *Conn) WritePacket(pk packet.Packet) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferPool = sync.Pool{ New: func() any { return bytes.NewBuffer(make([]byte, 0, 256)) }, }
View Source
var PacketMap *intintmap.Map
Functions ¶
func PacketExists ¶ added in v0.0.15
Types ¶
type Authenticator ¶ added in v0.0.15
type Authenticator func(login.IdentityData, string) bool
type Conn ¶ added in v0.0.10
type Conn struct {
// contains filtered or unexported fields
}
func NewConn ¶ added in v0.0.10
func NewConn(conn io.ReadWriteCloser, authenticator Authenticator, pool packet.Pool) (*Conn, error)
func (*Conn) ClientCacheEnabled ¶ added in v0.0.10
ClientCacheEnabled ...
func (*Conn) ClientData ¶ added in v0.0.10
func (c *Conn) ClientData() login.ClientData
ClientData ...
func (*Conn) IdentityData ¶ added in v0.0.10
func (c *Conn) IdentityData() login.IdentityData
IdentityData ...
func (*Conn) ReadPacket ¶ added in v0.0.10
ReadPacket ...
func (*Conn) StartGameContext ¶ added in v0.0.10
StartGameContext ...
Click to show internal directories.
Click to hide internal directories.