v662

package
v0.0.0-...-1cf8517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	// contains filtered or unexported fields
}

func New

func New() *Protocol

func (Protocol) ConvertFromLatest

func (p Protocol) ConvertFromLatest(pk packet.Packet, conn *minecraft.Conn) (result []packet.Packet)

func (Protocol) ConvertToLatest

func (p Protocol) ConvertToLatest(pk packet.Packet, conn *minecraft.Conn) []packet.Packet

func (Protocol) Encryption

func (Protocol) Encryption(key [32]byte) packet.Encryption

func (Protocol) ID

func (p Protocol) ID() int32

func (Protocol) NewReader

func (Protocol) NewReader(r minecraft.ByteReader, shieldID int32, enableLimits bool) protocol.IO

func (Protocol) NewWriter

func (Protocol) NewWriter(w minecraft.ByteWriter, shieldID int32) protocol.IO

func (Protocol) Packets

func (Protocol) Packets(_ bool) packet.Pool

func (Protocol) Ver

func (p Protocol) Ver() string

type Reader

type Reader struct {
	*protocol.Reader
}

func NewReader

func NewReader(r *protocol.Reader) *Reader

NewReader creates a new initialised Reader with an underlying protocol.Reader to write to.

func (*Reader) LimitsEnabled

func (r *Reader) LimitsEnabled() bool

func (*Reader) Reads

func (r *Reader) Reads() bool

func (*Reader) Recipe

func (r *Reader) Recipe(x *protocol.Recipe)

Recipe reads a Recipe from the reader.

type Writer

type Writer struct {
	*protocol.Writer
}

func NewWriter

func NewWriter(w *protocol.Writer) *Writer

NewWriter creates a new initialised Writer with an underlying protocol.Writer to write to.

func (*Writer) Recipe

func (w *Writer) Recipe(x *protocol.Recipe)

Recipe writes a Recipe to the writer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL