Serializable
, Comparable<Chest.Type>
public static enum Chest.Type extends Enum<Chest.Type>
Enum Constant | Description |
---|---|
LEFT |
The chest is the left hand side of a double chest and shares a 54
block inventory with the chest to its right.
|
RIGHT |
The chest is the right hand side of a double chest and shares a 54
block inventory with the chest to its left.
|
SINGLE |
The chest is not linked to any others and contains only one 27 slot
inventory.
|
Modifier and Type | Method | Description |
---|---|---|
static Chest.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Chest.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Chest.Type SINGLE
public static final Chest.Type LEFT
public static final Chest.Type RIGHT
public static Chest.Type[] values()
for (Chest.Type c : Chest.Type.values()) System.out.println(c);
public static Chest.Type 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 nullCopyright © 2019. All rights reserved.