RedirectedSlot

open class RedirectedSlot : Slot

Constructors

RedirectedSlot
Link copied to clipboard
open fun RedirectedSlot(container: Container, index: Int)

Functions

mayPickup
Link copied to clipboard
open fun mayPickup(player: Player): Boolean

Inherited functions

allowModification
Link copied to clipboard
open fun allowModification(player: Player): Boolean
getContainerSlot
Link copied to clipboard
open fun getContainerSlot(): Int
getItem
Link copied to clipboard
open fun getItem(): ItemStack
getMaxStackSize
Link copied to clipboard
open fun getMaxStackSize(): Int
getNoItemIcon
Link copied to clipboard
open fun getNoItemIcon(): Pair<ResourceLocation, ResourceLocation>
hasItem
Link copied to clipboard
open fun hasItem(): Boolean
isActive
Link copied to clipboard
open fun isActive(): Boolean
isHighlightable
Link copied to clipboard
open fun isHighlightable(): Boolean
mayPlace
Link copied to clipboard
open fun mayPlace(itemStack: ItemStack): Boolean
onQuickCraft
Link copied to clipboard
open fun onQuickCraft(itemStack: ItemStack, itemStack2: ItemStack)
onTake
Link copied to clipboard
open fun onTake(player: Player, itemStack: ItemStack)
remove
Link copied to clipboard
open fun remove(i: Int): ItemStack
safeInsert
Link copied to clipboard
open fun safeInsert(itemStack: ItemStack): ItemStack
safeTake
Link copied to clipboard
open fun safeTake(i: Int, j: Int, player: Player): ItemStack
set
Link copied to clipboard
open fun set(itemStack: ItemStack)
setByPlayer
Link copied to clipboard
open fun setByPlayer(itemStack: ItemStack)
setChanged
Link copied to clipboard
open fun setChanged()
tryRemove
Link copied to clipboard
open fun tryRemove(i: Int, j: Int, player: Player): Optional<ItemStack>