GuiChest

The GUI for a chest inventory.

Extends

Properties

container

readonly container: Container

The inventory container, contains the slot data.

Inherited from

GuiContainer.container


doesGuiPauseGame

readonly doesGuiPauseGame: boolean

Does the gui pause the game?

Inherited from

GuiContainer.doesGuiPauseGame

Methods

draggedStack()

draggedStack(): ItemStack

The ItemStack that is being dragged.

Returns

ItemStack

Inherited from

GuiContainer.draggedStack


getSlotAtPosition()

getSlotAtPosition(x, y): Slot

Returns the slot at the given position.

Parameters

x

number

y

number

Returns

Slot

Inherited from

GuiContainer.getSlotAtPosition


mouseClicked()

mouseClicked(x, y, button): void

Click the gui in the given position.

Parameters

x

number

The x position

y

number

The y position

button

number

The button

Returns

void

Inherited from

GuiContainer.mouseClicked


mouseClickMove()

mouseClickMove(x, y, button, time): void

Drag mouse to position.

Parameters

x

number

The x position

y

number

The y position

button

number

The button

time

number

Time since last click

Returns

void

Inherited from

GuiContainer.mouseClickMove


mouseReleased()

mouseReleased(x, y, button): void

Release mouse at the given position.

Parameters

x

number

The x position

y

number

The y position

button

number

The button

Returns

void

Inherited from

GuiContainer.mouseReleased

Last updated