ChiseledBookshelfFuelLogisticSlot

Constructors

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

Properties

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

Functions

Link copied to clipboard
open fun canSet(stack: ItemStack?, amount: Long): Boolean
Link copied to clipboard
open override fun getAmount(): Long
Link copied to clipboard
open override 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
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)