playerinventory

package
v0.0.0-...-abfa450 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerInventory

type PlayerInventory struct {
	HeldSlot uint8
	// contains filtered or unexported fields
}

func NewPlayerInventory

func NewPlayerInventory() *PlayerInventory

func (*PlayerInventory) AddItem

func (inv *PlayerInventory) AddItem(item slot.SlotItem)

func (*PlayerInventory) GetArmorPackets

func (inv *PlayerInventory) GetArmorPackets(eid int32) []protocol.PacketOut

func (*PlayerInventory) GetDirectSlot

func (inv *PlayerInventory) GetDirectSlot(slotIndex int) slot.SlotItem

func (*PlayerInventory) GetHeldItem

func (inv *PlayerInventory) GetHeldItem() slot.SlotItem

func (*PlayerInventory) HasItem

func (inv *PlayerInventory) HasItem(material material.Material) bool

func (PlayerInventory) ID

func (inv PlayerInventory) ID() uint8

func (PlayerInventory) Packets

func (inv PlayerInventory) Packets() []protocol.PacketOut

func (*PlayerInventory) SetArmor

func (inv *PlayerInventory) SetArmor(slot types.PlayerInventoryArmor, slotData slot.SlotItem)

func (*PlayerInventory) SetCrafting

func (inv *PlayerInventory) SetCrafting(slot int, slotData slot.SlotItem)

func (*PlayerInventory) SetDirectSlot

func (inv *PlayerInventory) SetDirectSlot(slot int, slotData slot.SlotItem)

func (*PlayerInventory) SetHeldItemSlot

func (inv *PlayerInventory) SetHeldItemSlot(slot uint8)

func (*PlayerInventory) SetHotbar

func (inv *PlayerInventory) SetHotbar(slot int, slotData slot.SlotItem)

func (*PlayerInventory) SetSlot

func (inv *PlayerInventory) SetSlot(slot int, slotData slot.SlotItem)

func (PlayerInventory) Size

func (inv PlayerInventory) Size() uint16

func (PlayerInventory) Title

func (inv PlayerInventory) Title() string

Jump to

Keyboard shortcuts

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