Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseContainer ¶
CloseContainer closes the container that the session passed is currently viewing.
func UpdateMenu ¶
UpdateMenu updates the menu that the player passed is currently viewing to the menu passed.
Types ¶
type Closer ¶
Closer is a type that can be implemented by a Submittable to be called when a menu is closed.
type Container ¶
Container represents a container that can be opened by a player. Containers are blocks that can store items
type ContainerBarrel ¶
type ContainerBarrel struct{}
ContainerBarrel represents a barrel container.
func (ContainerBarrel) Block ¶
func (ContainerBarrel) Block() world.Block
func (ContainerBarrel) Size ¶
func (ContainerBarrel) Size() int
func (ContainerBarrel) Type ¶
func (ContainerBarrel) Type() int
type ContainerChest ¶
type ContainerChest struct{ DoubleChest bool }
ContainerChest represents a chest container. It can be a single chest or a double chest.
type ContainerDropper ¶
type ContainerDropper struct{}
ContainerDropper represents a dispenser container.
func (ContainerDropper) Block ¶
func (ContainerDropper) Block() world.Block
func (ContainerDropper) Size ¶
func (ContainerDropper) Size() int
func (ContainerDropper) Type ¶
func (ContainerDropper) Type() int
type ContainerEnderChest ¶ added in v0.2.0
type ContainerEnderChest struct{}
ContainerEnderChest represents a enderchest container.
func (ContainerEnderChest) Block ¶ added in v0.2.0
func (ContainerEnderChest) Block() world.Block
func (ContainerEnderChest) Size ¶ added in v0.2.0
func (ContainerEnderChest) Size() int
func (ContainerEnderChest) Type ¶ added in v0.2.0
func (ContainerEnderChest) Type() int
type ContainerHopper ¶
type ContainerHopper struct{}
ContainerHopper represents a hopper container.
func (ContainerHopper) Block ¶
func (ContainerHopper) Block() world.Block
func (ContainerHopper) Size ¶
func (ContainerHopper) Size() int
func (ContainerHopper) Type ¶
func (ContainerHopper) Type() int
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
Menu is a menu that can be sent to a player. It can be used to display a custom inventory to a player.
func NewCustomMenu ¶ added in v0.2.0
func NewCustomMenu(name string, container Container, inv *inventory.Inventory, containerClose func(inv *inventory.Inventory)) Menu
NewCustomMenu creates a new menu with the name, container and inventory.