blobcache

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blobcache

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

func NewBlobCache

func NewBlobCache(
	log *logrus.Entry,
	writeServerPacket func(packet.Packet) error,
	getClient func() minecraft.IConn,
	processPacket PacketFunc,
	onHitBlobs func(blobs []protocol.CacheBlob),
	isReplay bool,
) (*Blobcache, error)

func (*Blobcache) Close

func (b *Blobcache) Close() error

func (*Blobcache) HandleClientCacheBlobStatus

func (b *Blobcache) HandleClientCacheBlobStatus(pk *packet.ClientCacheBlobStatus) error

func (*Blobcache) HandleClientCacheMissResponse

func (b *Blobcache) HandleClientCacheMissResponse(pk *packet.ClientCacheMissResponse, timeReceived time.Time, preLogin bool) error

func (*Blobcache) HandleLevelChunk

func (b *Blobcache) HandleLevelChunk(pk *packet.LevelChunk, timeReceived time.Time, preLogin bool) (pkForward packet.Packet, err error)

func (*Blobcache) HandleSubChunk

func (b *Blobcache) HandleSubChunk(pk *packet.SubChunk, timeReceived time.Time, preLogin bool) (pkForward packet.Packet, err error)

type PacketFunc

type PacketFunc = func(pk packet.Packet, timeReceived time.Time, preLogin bool) error

Jump to

Keyboard shortcuts

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