public enum SimpleDirection extends Enum<SimpleDirection>
| Modifier and Type | Method and Description |
|---|---|
static SimpleDirection |
fromBlockFace(BlockFace face) |
static SimpleDirection |
fromIndex(int index) |
BlockFace |
toBlockFace() |
static SimpleDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleDirection NORTH
public static final SimpleDirection SOUTH
public static final SimpleDirection EAST
public static final SimpleDirection WEST
public static SimpleDirection[] values()
for (SimpleDirection c : SimpleDirection.values()) System.out.println(c);
public static SimpleDirection 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 toBlockFace()
public static SimpleDirection fromIndex(int index)
public static SimpleDirection fromBlockFace(@Nonnull BlockFace face)
Copyright © 2017–2020 NukkitX. All rights reserved.