handlers

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChatLogger

func NewChatLogger() *proxy.Handler

func NewPacketCapturer

func NewPacketCapturer() *proxy.Handler

func NewSkinSaver

func NewSkinSaver(skinCB func(SkinAdd)) *proxy.Handler

Types

type SkinAdd

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

type SkinSaver

type SkinSaver struct {
	PlayerNameFilter  string
	OnlyIfHasGeometry bool
	ServerName        string
	// 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