public static enum InventoryItem.Type extends java.lang.Enum<InventoryItem.Type>
| Enum Constant and Description |
|---|
BLOCK |
ERROR |
FILTERED_BLOCK |
TRANSACTION |
WITNESS_BLOCK |
WITNESS_FILTERED_BLOCK |
WITNESS_TRANSACTION |
| Modifier and Type | Field and Description |
|---|---|
int |
code |
| Modifier and Type | Method and Description |
|---|---|
static InventoryItem.Type |
ofCode(int code) |
static InventoryItem.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InventoryItem.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryItem.Type ERROR
public static final InventoryItem.Type TRANSACTION
public static final InventoryItem.Type BLOCK
public static final InventoryItem.Type FILTERED_BLOCK
public static final InventoryItem.Type WITNESS_TRANSACTION
public static final InventoryItem.Type WITNESS_BLOCK
public static final InventoryItem.Type WITNESS_FILTERED_BLOCK
public static InventoryItem.Type[] values()
for (InventoryItem.Type c : InventoryItem.Type.values()) System.out.println(c);
public static InventoryItem.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static InventoryItem.Type ofCode(int code)