public enum InventoryType extends Enum<InventoryType>
| Enum Constant and Description |
|---|
ANVIL
Anvil inventory
|
BREWING_STAND
Brewing stand inventory
|
CHEST
Single chest
|
CRAFTING
2 x 2 crafting grid inventory
|
DISPENSER
Dispenser inventory
|
DOUBLE_CHEST
Double chest equivalent to two chests
|
DROPPER
Dropper inventory
|
ENCHANTMENT_TABLE
Enchantment table inventory
|
ENDER_CHEST
Ender chest
|
FURNACE
Furnace inventory
|
HOPPER
Hopper inventory
|
PLAYER
Player inventory
|
WORKBENCH
Crafting table inventory
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getSize() |
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 ENDER_CHEST
public static final InventoryType DOUBLE_CHEST
public static final InventoryType PLAYER
public static final InventoryType FURNACE
public static final InventoryType CRAFTING
public static final InventoryType WORKBENCH
public static final InventoryType BREWING_STAND
public static final InventoryType ANVIL
public static final InventoryType ENCHANTMENT_TABLE
public static final InventoryType DISPENSER
public static final InventoryType DROPPER
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 byte getSize()
Copyright © 2017–2019 NukkitX. All rights reserved.