java.io.Serializable
, java.lang.Comparable<RedstoneWire.Connection>
public static enum RedstoneWire.Connection extends java.lang.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(java.lang.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(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 nullCopyright © 2018. All rights reserved.