Package org.bukkit.block
Enum Class BlockFace
- All Implemented Interfaces:
- Serializable,- Comparable<BlockFace>,- Constable
Represents the face of a block
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionGets the normal vector corresponding to this block face.intgetModX()Get the amount of X-coordinates to modify to get the represented blockintgetModY()Get the amount of Y-coordinates to modify to get the represented blockintgetModZ()Get the amount of Z-coordinates to modify to get the represented blockbooleanReturns true if this face is aligned with one of the unit axes in 3D Cartesian space (ie NORTH, SOUTH, EAST, WEST, UP, DOWN).static BlockFaceReturns the enum constant of this class with the specified name.static BlockFace[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NORTH
- 
EAST
- 
SOUTH
- 
WEST
- 
UP
- 
DOWN
- 
NORTH_EAST
- 
NORTH_WEST
- 
SOUTH_EAST
- 
SOUTH_WEST
- 
WEST_NORTH_WEST
- 
NORTH_NORTH_WEST
- 
NORTH_NORTH_EAST
- 
EAST_NORTH_EAST
- 
EAST_SOUTH_EAST
- 
SOUTH_SOUTH_EAST
- 
SOUTH_SOUTH_WEST
- 
WEST_SOUTH_WEST
- 
SELF
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getModXpublic int getModX()Get the amount of X-coordinates to modify to get the represented block- Returns:
- Amount of X-coordinates to modify
 
- 
getModYpublic int getModY()Get the amount of Y-coordinates to modify to get the represented block- Returns:
- Amount of Y-coordinates to modify
 
- 
getModZpublic int getModZ()Get the amount of Z-coordinates to modify to get the represented block- Returns:
- Amount of Z-coordinates to modify
 
- 
getDirectionGets the normal vector corresponding to this block face.- Returns:
- the normal vector
 
- 
isCartesianpublic boolean isCartesian()Returns true if this face is aligned with one of the unit axes in 3D Cartesian space (ie NORTH, SOUTH, EAST, WEST, UP, DOWN).- Returns:
- Cartesian status
 
- 
getOppositeFace
 
-