screen

package
v0.0.0-...-e9518c4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generic

type Generic struct {
	Width, Height int          // Width and Height of the grid. Used to determine the offset of the non-content slots.
	Slots         []item.Stack // Will be initialized in InitGenericContainer
}

func InitGenericContainer

func InitGenericContainer(size, width, height int) *Generic

func (*Generic) Count

func (g *Generic) Count() int

func (*Generic) GetContentSlots

func (g *Generic) GetContentSlots() []item.Stack

func (*Generic) GetHotbarSlots

func (g *Generic) GetHotbarSlots() []item.Stack

func (*Generic) GetInventorySlots

func (g *Generic) GetInventorySlots() []item.Stack

func (*Generic) GetSlot

func (g *Generic) GetSlot(i int) item.Stack

func (*Generic) OnClose

func (g *Generic) OnClose() error

func (*Generic) SetSlot

func (g *Generic) SetSlot(i int, s item.Stack) error

func (*Generic) Slot

func (g *Generic) Slot() []item.Stack

Jump to

Keyboard shortcuts

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