public enum BlockFace extends Enum<BlockFace>
Modifier and Type | Class and Description |
---|---|
static class |
BlockFace.EnumAxis |
Modifier and Type | Method and Description |
---|---|
BlockFace.EnumAxis |
getAxis() |
byte |
getModX() |
byte |
getModY() |
byte |
getModZ() |
BlockFace |
opposite() |
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 are declared.
|
public static final BlockFace NORTH
public static final BlockFace SOUTH
public static final BlockFace EAST
public static final BlockFace WEST
public static final BlockFace TOP
public static final BlockFace BOTTOM
public static 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 nameNullPointerException
- if the argument is nullpublic BlockFace opposite()
public byte getModX()
public byte getModY()
public byte getModZ()
public BlockFace.EnumAxis getAxis()
Copyright © 2016–2021. All rights reserved.