Package net.minecraft.util
Enum EightWayDirection
- All Implemented Interfaces:
Serializable
,Comparable<EightWayDirection>
,java.lang.constant.Constable
public enum EightWayDirection extends Enum<EightWayDirection>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description EAST
NORTH
NORTH_EAST
NORTH_WEST
SOUTH
SOUTH_EAST
SOUTH_WEST
WEST
-
Field Summary
Fields Modifier and Type Field Description private Set<Direction>
directions
private static int
EAST_BIT
private static int
NORTH_BIT
private static int
NORTHEAST_BIT
private static int
NORTHWEST_BIT
private static int
SOUTH_BIT
private static int
SOUTHEAST_BIT
private static int
SOUTHWEST_BIT
private static int
WEST_BIT
-
Constructor Summary
Constructors Modifier Constructor Description private
EightWayDirection(Direction[] direction)
-
Method Summary
Modifier and Type Method Description Set<Direction>
getDirections()
static EightWayDirection
valueOf(String name)
Returns the enum constant of this type with the specified name.static EightWayDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORTH
-
NORTH_EAST
-
EAST
-
SOUTH_EAST
-
SOUTH
-
SOUTH_WEST
-
WEST
-
NORTH_WEST
-
-
Field Details
-
NORTHWEST_BIT
private static final int NORTHWEST_BIT -
WEST_BIT
private static final int WEST_BIT -
SOUTHWEST_BIT
private static final int SOUTHWEST_BIT -
SOUTH_BIT
private static final int SOUTH_BIT -
SOUTHEAST_BIT
private static final int SOUTHEAST_BIT -
EAST_BIT
private static final int EAST_BIT -
NORTHEAST_BIT
private static final int NORTHEAST_BIT -
NORTH_BIT
private static final int NORTH_BIT -
directions
-
-
Constructor Details
-
EightWayDirection
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDirections
-