Documentation
¶
Index ¶
- type Generic
- func (g *Generic) Count() int
- func (g *Generic) GetContentSlots() []item.Stack
- func (g *Generic) GetHotbarSlots() []item.Stack
- func (g *Generic) GetInventorySlots() []item.Stack
- func (g *Generic) GetSlot(i int) item.Stack
- func (g *Generic) OnClose() error
- func (g *Generic) SetSlot(i int, s item.Stack) error
- func (g *Generic) Slot() []item.Stack
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 (*Generic) GetContentSlots ¶
func (*Generic) GetHotbarSlots ¶
func (*Generic) GetInventorySlots ¶
Click to show internal directories.
Click to hide internal directories.