Documentation ¶
Index ¶
- func CloseContainer(p *player.Player)
- func PlaceFakeContainer(w *world.World, pos cube.Pos)
- func RedirectPlayerPackets(p *player.Player)
- func SendMenu(p *player.Player, m Menu)
- func UpdateMenu(p *player.Player, m Menu)
- type Closer
- type Container
- type ContainerBarrel
- type ContainerChest
- type ContainerDropper
- type ContainerHopper
- type Menu
- type Submittable
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 PlaceFakeContainer ¶
PlaceFakeContainer places a fake container at the position and world passed.
func RedirectPlayerPackets ¶
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 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.