LogisticSlot

interface LogisticSlot(source)

Represents a slot in an interface which can have items added or removed.

Inheritors

Functions

Link copied to clipboard
abstract fun getAmount(): Long
Link copied to clipboard
abstract fun getItemStack(): 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
abstract 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
abstract fun set(stack: ItemStack?, amount: Long)