public enum InventoryType extends Enum<InventoryType>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | InventoryType.SlotType | 
| Enum Constant and Description | 
|---|
| ANVILAn anvil inventory, with 2 CRAFTING slots and 1 RESULT slot | 
| BEACONA beacon inventory, with 1 CRAFTING slot | 
| BREWINGA brewing stand inventory, with one FUEL slot and three CRAFTING slots. | 
| CHESTA chest inventory, with 0, 9, 18, 27, 36, 45, or 54 slots of type
 CONTAINER. | 
| CRAFTINGA player's crafting inventory, with 4 CRAFTING slots and a RESULT slot. | 
| CREATIVEThe creative mode inventory, with only 9 QUICKBAR slots and nothing
 else. | 
| DISPENSERA dispenser inventory, with 9 slots of type CONTAINER. | 
| DROPPERA dropper inventory, with 9 slots of type CONTAINER. | 
| ENCHANTINGAn enchantment table inventory, with two CRAFTING slots and three
 enchanting buttons. | 
| ENDER_CHESTThe ender chest inventory, with 27 slots. | 
| FURNACEA furnace inventory, with a RESULT slot, a CRAFTING slot, and a FUEL
 slot. | 
| HOPPERA hopper inventory, with 5 slots of type CONTAINER. | 
| MERCHANTThe merchant inventory, with 2 TRADE-IN slots, and 1 RESULT slot. | 
| PLAYERA player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, and 4
 ARMOR slots. | 
| WORKBENCHA workbench inventory, with 9 CRAFTING slots and a RESULT slot. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getDefaultSize() | 
| String | getDefaultTitle() | 
| static InventoryType | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static InventoryType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final InventoryType CHEST
public static final InventoryType DISPENSER
public static final InventoryType DROPPER
public static final InventoryType FURNACE
public static final InventoryType WORKBENCH
public static final InventoryType CRAFTING
public static final InventoryType ENCHANTING
public static final InventoryType BREWING
public static final InventoryType PLAYER
public static final InventoryType CREATIVE
public static final InventoryType MERCHANT
public static final InventoryType ENDER_CHEST
public static final InventoryType ANVIL
public static final InventoryType BEACON
public static final InventoryType HOPPER
public static InventoryType[] values()
for (InventoryType c : InventoryType.values()) System.out.println(c);
public static InventoryType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getDefaultSize()
public String getDefaultTitle()
Copyright © 2015. All rights reserved.