GuiContainer

The base GuiContainer class.

Extends

Extended by

Properties

container

readonly container: Container

The inventory container, contains the slot data.


doesGuiPauseGame

readonly doesGuiPauseGame: boolean

Does the gui pause the game?

Inherited from

GuiScreen.doesGuiPauseGame

Methods

draggedStack()

draggedStack(): ItemStack

The ItemStack that is being dragged.

Returns

ItemStack


getSlotAtPosition()

getSlotAtPosition(x, y): Slot

Returns the slot at the given position.

Parameters

x

number

y

number

Returns

Slot


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

GuiScreen.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

GuiScreen.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

GuiScreen.mouseReleased

Last updated