VirtualInventoryLogisticSlot

open class VirtualInventoryLogisticSlot(val inventory: VirtualInventory, val slot: Int) : LogisticSlot(source)

Constructors

Link copied to clipboard
constructor(inventory: VirtualInventory, slot: Int)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val slot: Int

Functions

Link copied to clipboard
open override fun canSet(stack: ItemStack?, amount: Long): Boolean
Link copied to clipboard
open override fun getAmount(): Long
Link copied to clipboard
open override fun getItemStack(): @Nullable ItemStack?

The amount of the returned ItemStack does not matter and will not be used at any point. For specifying the item amount, use getAmount.

Link copied to clipboard
open override fun getMaxAmount(stack: ItemStack): Long

Returns the maximum amount for the given stack (which may not necessarily be the same as the stack returned by getItemStack).

Link copied to clipboard
open override fun set(stack: ItemStack?, amount: Long)