|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BlockFace> org.bukkit.block.BlockFace
public enum BlockFace
Represents the face of a block
Method Summary | |
---|---|
int |
getModX()
Get the amount of X-coordinates to modify to get the represented block |
int |
getModY()
Get the amount of Y-coordinates to modify to get the represented block |
int |
getModZ()
Get the amount of Z-coordinates to modify to get the represented block |
BlockFace |
getOppositeFace()
|
static BlockFace |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BlockFace[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BlockFace NORTH
public static final BlockFace EAST
public static final BlockFace SOUTH
public static final BlockFace WEST
public static final BlockFace UP
public static final BlockFace DOWN
public static final BlockFace NORTH_EAST
public static final BlockFace NORTH_WEST
public static final BlockFace SOUTH_EAST
public static final BlockFace SOUTH_WEST
public static final BlockFace WEST_NORTH_WEST
public static final BlockFace NORTH_NORTH_WEST
public static final BlockFace NORTH_NORTH_EAST
public static final BlockFace EAST_NORTH_EAST
public static final BlockFace EAST_SOUTH_EAST
public static final BlockFace SOUTH_SOUTH_EAST
public static final BlockFace SOUTH_SOUTH_WEST
public static final BlockFace WEST_SOUTH_WEST
public static final BlockFace SELF
Method Detail |
---|
public static final BlockFace[] values()
for(BlockFace c : BlockFace.values()) System.out.println(c);
public static BlockFace valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getModX()
public int getModY()
public int getModZ()
public BlockFace getOppositeFace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |