Package net.minecraft.util
Enum Direction8
- java.lang.Object
-
- java.lang.Enum<Direction8>
-
- net.minecraft.util.Direction8
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Direction8>
public enum Direction8 extends java.lang.Enum<Direction8>
-
-
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 java.util.Set<Direction>
directions
private static int
EAST_MASK
private static int
NORTH_EAST_MASK
private static int
NORTH_MASK
private static int
NORTH_WEST_MASK
private static int
SOUTH_EAST_MASK
private static int
SOUTH_MASK
private static int
SOUTH_WEST_MASK
private static int
WEST_MASK
-
Constructor Summary
Constructors Modifier Constructor Description private
Direction8(Direction... p_i47954_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Direction>
getDirections()
static Direction8
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Direction8[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORTH
public static final Direction8 NORTH
-
NORTH_EAST
public static final Direction8 NORTH_EAST
-
EAST
public static final Direction8 EAST
-
SOUTH_EAST
public static final Direction8 SOUTH_EAST
-
SOUTH
public static final Direction8 SOUTH
-
SOUTH_WEST
public static final Direction8 SOUTH_WEST
-
WEST
public static final Direction8 WEST
-
NORTH_WEST
public static final Direction8 NORTH_WEST
-
-
Field Detail
-
NORTH_WEST_MASK
private static final int NORTH_WEST_MASK
-
WEST_MASK
private static final int WEST_MASK
-
SOUTH_WEST_MASK
private static final int SOUTH_WEST_MASK
-
SOUTH_MASK
private static final int SOUTH_MASK
-
SOUTH_EAST_MASK
private static final int SOUTH_EAST_MASK
-
EAST_MASK
private static final int EAST_MASK
-
NORTH_EAST_MASK
private static final int NORTH_EAST_MASK
-
NORTH_MASK
private static final int NORTH_MASK
-
directions
private final java.util.Set<Direction> directions
-
-
Constructor Detail
-
Direction8
private Direction8(Direction... p_i47954_3_)
-
-
Method Detail
-
values
public static Direction8[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Direction8 c : Direction8.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Direction8 valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDirections
public java.util.Set<Direction> getDirections()
-
-