handler

package
v0.0.0-...-0d78db7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmourHandler

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

func NewArmourHandler

func NewArmourHandler(h ports.PlayerHelper) *ArmourHandler

func (*ArmourHandler) HandleDrop

func (h *ArmourHandler) HandleDrop(ctx *inventory.Context, slot int, _ item.Stack)

HandleDrop ...

func (*ArmourHandler) HandlePlace

func (h *ArmourHandler) HandlePlace(ctx *inventory.Context, _ int, stack item.Stack)

HandlePlace ...

func (*ArmourHandler) HandleTake

func (h *ArmourHandler) HandleTake(ctx *inventory.Context, slot int, _ item.Stack)

HandleTake ...

type InventoryHandler

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

func NewInventoryHandler

func NewInventoryHandler(h *PlayerHandler) *InventoryHandler

func (*InventoryHandler) HandleDrop

func (*InventoryHandler) HandleDrop(*inventory.Context, int, item.Stack)

func (*InventoryHandler) HandlePlace

func (*InventoryHandler) HandlePlace(*inventory.Context, int, item.Stack)

func (*InventoryHandler) HandleTake

func (*InventoryHandler) HandleTake(*inventory.Context, int, item.Stack)

type PlayerHandler

type PlayerHandler struct {
	player.NopHandler
	// contains filtered or unexported fields
}

func NewPlayerHandler

func NewPlayerHandler(handle *world.EntityHandle, class class.Class) *PlayerHandler

func (PlayerHandler) HandleHeldSlotChange

func (h PlayerHandler) HandleHeldSlotChange(ctx *player.Context, from int, to int)

Jump to

Keyboard shortcuts

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