public enum InventoryType extends Enum<InventoryType>
Enum Constant and Description |
---|
ANVIL |
BEACON |
BREWING_STAND |
CHEST |
CRAFTING_TABLE |
DISPENSER |
DROPPER |
ENCHANTING_TABLE |
FURNACE |
HOPPER |
HORSE |
VILLAGER_TRADE |
Modifier and Type | Method and Description |
---|---|
String |
defaultName() |
String |
toString()
Returns the Minecraft ID for the entity or block which holds the InventoryType
|
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 CRAFTING_TABLE
public static final InventoryType FURNACE
public static final InventoryType DISPENSER
public static final InventoryType ENCHANTING_TABLE
public static final InventoryType BREWING_STAND
public static final InventoryType VILLAGER_TRADE
public static final InventoryType BEACON
public static final InventoryType ANVIL
public static final InventoryType HOPPER
public static final InventoryType DROPPER
public static final InventoryType HORSE
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 String toString()
toString
in class Enum<InventoryType>
public String defaultName()
Copyright © 2016. All rights reserved.