handler

package
v0.0.0-...-54241fc Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCommandPacket

func ChatCommandPacket(state *player.Player, graph *commands.Graph, log *logger.Logger, content string, timestamp, salt int64, sigs []packet.Argument)

func ChatMessagePacket

func ChatMessagePacket(state *player.Player, pk *packet.ChatMessageServer)

func ClickContainer

func ClickContainer(state *player.Player, pk *packet.ClickContainer)

func ClientCommand

func ClientCommand(state *player.Player, action int32)

func ClientSettings

func ClientSettings(state *player.Player, pk *packet.ClientSettings)

func CommandSuggestionsRequest

func CommandSuggestionsRequest(id int32, content string, graph *commands.Graph, state *player.Player)

func Interact

func Interact(state *player.Player, pk *packet.InteractServer)

func PlayerAbilities

func PlayerAbilities(state *player.Player, flags byte)

func PlayerAction

func PlayerAction(state *player.Player, pk *packet.PlayerActionServer)

func PlayerCommand

func PlayerCommand(state *player.Player, action int32)

func PlayerMovement

func PlayerMovement(
	state *player.Player,
	p packet.Packet,
)

func SetCreativeModeSlot

func SetCreativeModeSlot(state *player.Player, slot int16, data packet.Slot)

func SetHeldItem

func SetHeldItem(state *player.Player, heldItem int16)

func SwingArm

func SwingArm(state *player.Player, hand int32)

func TeleportToEntity

func TeleportToEntity(state *player.Player, uuid [16]byte)

func UseItemOn

func UseItemOn(state *player.Player, pk *packet.UseItemOnServer, f func(d *world.Dimension, x, y, z int64, b chunk.Block, typ world.SetBlockHandling))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳