TileEntityMenu

interface TileEntityMenu

A container for Windows that belong to a TileEntity.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun close()

Closes all windows associated with this container.

Link copied to clipboard
abstract fun open(player: Player): Boolean

Opens the main Window associated with this container for player. Returns true if a window was opened, false otherwise.

Link copied to clipboard
abstract fun register(window: Window)

Registers window as a part of this menu. Apart from the main window, every window created that belongs to a tile entity must be registered through this.