Serializable
, Comparable<RedstoneWire.Connection>
public static enum RedstoneWire.Connection extends Enum<RedstoneWire.Connection>
Enum Constant | Description |
---|---|
NONE |
The wire does not connect in this direction.
|
SIDE |
The wire travels flat from this face and into the adjacent block.
|
UP |
The wire travels up the side of the block adjacent to this face.
|
Modifier and Type | Method | Description |
---|---|---|
static RedstoneWire.Connection |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static RedstoneWire.Connection[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedstoneWire.Connection UP
public static final RedstoneWire.Connection SIDE
public static final RedstoneWire.Connection NONE
public static RedstoneWire.Connection[] values()
for (RedstoneWire.Connection c : RedstoneWire.Connection.values()) System.out.println(c);
public static RedstoneWire.Connection 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.