ListItemsGUI

abstract class ListItemsGUI : SimpleGui, Container

Constructors

ListItemsGUI
Link copied to clipboard
open fun ListItemsGUI(player: ServerPlayer, npcName: Component, titleTranslationKey: String)
Constructs a new simple container gui for the supplied player.

Properties

currentPage
Link copied to clipboard
private open val currentPage: Int

Functions

getContainerSize
Link copied to clipboard
open fun getContainerSize(): Int
getFromName
Link copied to clipboard
open fun getFromName(name: String): Item
Gets an item from registry by string hash.
getMaxPages
Link copied to clipboard
abstract fun getMaxPages(): Int
setChanged
Link copied to clipboard
open fun setChanged()
stillValid
Link copied to clipboard
open fun stillValid(player: Player): Boolean

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
clearContent
Link copied to clipboard
abstract fun clearContent()
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
getFirstEmptySlot
Link copied to clipboard
open fun getFirstEmptySlot(): Int
getHeight
Link copied to clipboard
open fun getHeight(): Int
getItem
Link copied to clipboard
abstract fun getItem(i: Int): ItemStack
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
isEmpty
Link copied to clipboard
abstract fun isEmpty(): 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
removeItem
Link copied to clipboard
abstract fun removeItem(i: Int, j: Int): ItemStack
removeItemNoUpdate
Link copied to clipboard
abstract fun removeItemNoUpdate(i: Int): ItemStack
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)
setItem
Link copied to clipboard
abstract fun setItem(i: Int, itemStack: ItemStack)
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)
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)

Inheritors

MessagesEditGUI
Link copied to clipboard