MessagesEditGUI

open class MessagesEditGUI : ListItemsGUI

Constructors

MessagesEditGUI
Link copied to clipboard
open fun MessagesEditGUI(player: ServerPlayer, taterzen: TaterzenNPC)
Constructs a new simple container gui for the supplied player.

Functions

clearContent
Link copied to clipboard
open fun clearContent()
getItem
Link copied to clipboard
open fun getItem(index: Int): ItemStack
getMaxPages
Link copied to clipboard
open fun getMaxPages(): Int
isEmpty
Link copied to clipboard
open fun isEmpty(): Boolean
removeItem
Link copied to clipboard
open fun removeItem(index: Int, count: Int): ItemStack
removeItemNoUpdate
Link copied to clipboard
open fun removeItemNoUpdate(index: Int): ItemStack
setItem
Link copied to clipboard
open fun setItem(index: Int, stack: ItemStack)

Inherited functions

addSlot
Link copied to clipboard
open fun addSlot(itemStack: ItemStack, callback: GuiElementInterface.ItemClickCallback)
addSlotRedirect
Link copied to clipboard
open fun addSlotRedirect(slot: Slot)
afterOpen
Link copied to clipboard
open fun afterOpen()
beforeOpen
Link copied to clipboard
open fun beforeOpen()
canPlaceItem
Link copied to clipboard
open fun canPlaceItem(i: Int, itemStack: ItemStack): Boolean
canPlayerClose
Link copied to clipboard
open fun canPlayerClose(): Boolean
canTakeItem
Link copied to clipboard
open fun canTakeItem(container: Container, i: Int, itemStack: ItemStack): Boolean
clearSlot
Link copied to clipboard
open fun clearSlot(index: Int)
click
Link copied to clipboard
open fun click(index: Int, type: ClickType, action: ClickType): Boolean
close
Link copied to clipboard
open fun close(screenHandlerIsClosed: Boolean)
countItem
Link copied to clipboard
open fun countItem(item: Item): Int
getAutoUpdate
Link copied to clipboard
open fun getAutoUpdate(): Boolean
getContainerSize
Link copied to clipboard
abstract fun getContainerSize(): Int
open fun getContainerSize(): Int
getCurrentPage
Link copied to clipboard
open fun getCurrentPage(): Int
getFirstEmptySlot
Link copied to clipboard
open fun getFirstEmptySlot(): Int
getFromName
Link copied to clipboard
open fun getFromName(name: String): Item
Gets an item from registry by string hash.
getHeight
Link copied to clipboard
open fun getHeight(): Int
getLockPlayerInventory
Link copied to clipboard
open fun getLockPlayerInventory(): Boolean
getMaxStackSize
Link copied to clipboard
open fun getMaxStackSize(): Int
getPlayer
Link copied to clipboard
open fun getPlayer(): ServerPlayer
getSize
Link copied to clipboard
open fun getSize(): Int
getSlot
Link copied to clipboard
open fun getSlot(index: Int): GuiElementInterface
getSlotRedirect
Link copied to clipboard
open fun getSlotRedirect(index: Int): Slot
getSyncId
Link copied to clipboard
open fun getSyncId(): Int
getTitle
Link copied to clipboard
open fun getTitle(): Component
getType
Link copied to clipboard
open fun getType(): MenuType<out Any>
getVirtualSize
Link copied to clipboard
open fun getVirtualSize(): Int
getWidth
Link copied to clipboard
open fun getWidth(): Int
handleException
Link copied to clipboard
open fun handleException(throwable: Throwable)
hasAnyMatching
Link copied to clipboard
open fun hasAnyMatching(predicate: Predicate<ItemStack>): Boolean
hasAnyOf
Link copied to clipboard
open fun hasAnyOf(set: Set<Item>): Boolean
isIncludingPlayer
Link copied to clipboard
open fun isIncludingPlayer(): Boolean
isOpen
Link copied to clipboard
open fun isOpen(): Boolean
isRedirectingSlots
Link copied to clipboard
open fun isRedirectingSlots(): Boolean
onAnyClick
Link copied to clipboard
open fun onAnyClick(index: Int, type: ClickType, action: ClickType): Boolean
onClick
Link copied to clipboard
open fun onClick(index: Int, type: ClickType, action: ClickType, element: GuiElementInterface): Boolean
onClose
Link copied to clipboard
open fun onClose()
onCraftRequest
Link copied to clipboard
open fun onCraftRequest(recipe: ResourceLocation, shift: Boolean)
onOpen
Link copied to clipboard
open fun onOpen()
onTick
Link copied to clipboard
open fun onTick()
open
Link copied to clipboard
open fun open(): Boolean
resetMousePosition
Link copied to clipboard
open fun resetMousePosition(): Boolean
sendProperty
Link copied to clipboard
open fun sendProperty(property: Int, value: Int)
sendRawProperty
Link copied to clipboard
open fun sendRawProperty(id: Int, value: Int)
setAutoUpdate
Link copied to clipboard
open fun setAutoUpdate(value: Boolean)
setChanged
Link copied to clipboard
abstract fun setChanged()
open fun setChanged()
setLockPlayerInventory
Link copied to clipboard
open fun setLockPlayerInventory(value: Boolean)
setSlot
Link copied to clipboard
open fun setSlot(index: Int, element: GuiElementInterface)
setSlotRedirect
Link copied to clipboard
open fun setSlotRedirect(index: Int, slot: Slot)
setTitle
Link copied to clipboard
open fun setTitle(title: Component)
startOpen
Link copied to clipboard
open fun startOpen(player: Player)
stillValid
Link copied to clipboard
abstract fun stillValid(player: Player): Boolean
open fun stillValid(player: Player): Boolean
stillValidBlockEntity
Link copied to clipboard
open fun stillValidBlockEntity(blockEntity: BlockEntity, player: Player): Boolean
stopOpen
Link copied to clipboard
open fun stopOpen(player: Player)
tryClear
Link copied to clipboard
open fun tryClear(object: Any)