GUI
getInventory() -> Inventory
Returns the inventory of the GUI.
setInventory(inventory: Inventory) -> Null
Sets the contents of the GUI to be inventory
.
getTitle() -> String
Returns the title of the GUI.
onSlotClick(slot: Integer, button: Integer, gui: GUI, player: PlayerEntity) -> Boolean
This method is called when a user clicks a slot. This method is meant to be overridden.
onClose(player: PlayerEntity, gui: GUI) -> Null
This method is called when the user closes the GUI. This method is meant to be overridden.