handlers

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MutedPackets = []string{
	"packet.UpdateBlock",
	"packet.MoveActorAbsolute",
	"packet.SetActorMotion",
	"packet.SetTime",
	"packet.RemoveActor",
	"packet.AddActor",
	"packet.UpdateAttributes",
	"packet.Interact",
	"packet.LevelEvent",
	"packet.SetActorData",
	"packet.MoveActorDelta",
	"packet.MovePlayer",
	"packet.BlockActorData",
	"packet.PlayerAuthInput",
	"packet.LevelChunk",
	"packet.LevelSoundEvent",
	"packet.ActorEvent",
	"packet.NetworkChunkPublisherUpdate",
	"packet.UpdateSubChunkBlocks",
	"packet.SubChunk",
	"packet.SubChunkRequest",
	"packet.Animate",
	"packet.NetworkStackLatency",
	"packet.InventoryTransaction",
	"packet.PlaySound",
}

Functions

func NewChatLogger

func NewChatLogger() *utils.ProxyHandler

func NewDebugLogger

func NewDebugLogger(extraVerbose bool) *utils.ProxyHandler

func NewPacketCapturer

func NewPacketCapturer() *utils.ProxyHandler

func NewSkinSaver

func NewSkinSaver(skinCB func(SkinAdd)) *utils.ProxyHandler

Types

type SkinAdd

type SkinAdd struct {
	PlayerName string
	Skin       *protocol.Skin
}

type SkinSaver

type SkinSaver struct {
	PlayerNameFilter  string
	OnlyIfHasGeometry bool
	ServerName        string
	Proxy             *utils.ProxyContext
	// contains filtered or unexported fields
}

func (*SkinSaver) AddPlayerSkin

func (s *SkinSaver) AddPlayerSkin(playerID uuid.UUID, playerName string, skin *utils.Skin) (added bool)

func (*SkinSaver) AddSkin

func (s *SkinSaver) AddSkin(playerName string, playerID uuid.UUID, playerSkin *protocol.Skin) (string, *utils.Skin, bool)

func (*SkinSaver) ProcessPacket

func (s *SkinSaver) ProcessPacket(pk packet.Packet) (out []SkinAdd)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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