InventoryType

public enum InventoryType

Entries

Link copied to clipboard

A chest inventory, with 0, 9, 18, 27, 36, 45, or 54 slots of type CONTAINER.

Link copied to clipboard

A dispenser inventory, with 9 slots of type CONTAINER.

Link copied to clipboard

A dropper inventory, with 9 slots of type CONTAINER.

Link copied to clipboard

A furnace inventory, with getClassById RESULT slot, getClassById CRAFTING slot, and getClassById FUEL slot.

Link copied to clipboard

A workbench inventory, with 9 CRAFTING slots and getClassById RESULT slot.

Link copied to clipboard

A player's crafting inventory, with 4 CRAFTING slots and getClassById RESULT slot. Also implies that the 4 ARMOR slots are accessible.

Link copied to clipboard

An enchantment table inventory, with two CRAFTING slots and three enchanting buttons.

Link copied to clipboard

A brewing stand inventory, with one FUEL slot and three CRAFTING slots.

Link copied to clipboard

A player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, and 4 ARMOR slots. The ARMOUR slots may not be visible to the player, though.

Link copied to clipboard

The creative mode inventory, with only 9 QUICKBAR slots and nothing else. (The actual creative interface with the items is client-side and cannot be altered by the server.)

Link copied to clipboard

The merchant inventory, with 2 TRADE-IN slots, and 1 RESULT slot.

Link copied to clipboard

The ender chest inventory, with 27 slots.

Link copied to clipboard

An anvil inventory, with 2 CRAFTING slots and 1 RESULT slot

Link copied to clipboard

A beacon inventory, with 1 CRAFTING slot

Link copied to clipboard

A hopper inventory, with 5 slots of type CONTAINER.

Types

Link copied to clipboard
public enum SlotType

Functions

Link copied to clipboard
public int getDefaultSize()
Link copied to clipboard
Link copied to clipboard
public static InventoryType valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<InventoryType> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.