Package cn.nukkit.utils
Enum Class Rail.Orientation
- All Implemented Interfaces:
Serializable
,Comparable<Rail.Orientation>
,Constable
- Enclosing class:
- Rail
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rail.Orientation
static Rail.Orientation
byMetadata
(int meta) static Rail.Orientation
boolean
hasConnectingDirections
(BlockFace... faces) boolean
boolean
boolean
isCurved()
boolean
int
metadata()
static Rail.Orientation
static Rail.Orientation
straightOrCurved
(BlockFace f1, BlockFace f2) static Rail.Orientation
Returns the enum constant of this class with the specified name.static Rail.Orientation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRAIGHT_NORTH_SOUTH
-
STRAIGHT_EAST_WEST
-
ASCENDING_EAST
-
ASCENDING_WEST
-
ASCENDING_NORTH
-
ASCENDING_SOUTH
-
CURVED_SOUTH_EAST
-
CURVED_SOUTH_WEST
-
CURVED_NORTH_WEST
-
CURVED_NORTH_EAST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
byMetadata
-
straight
-
ascending
-
curved
-
straightOrCurved
-
metadata
public int metadata() -
hasConnectingDirections
-
hasConnectingDirections
-
connectingDirections
-
ascendingDirection
-
isStraight
public boolean isStraight() -
isAscending
public boolean isAscending() -
isCurved
public boolean isCurved()
-