public enum Direction extends java.lang.Enum<Direction> implements WrappedData
Modifier and Type | Method and Description |
---|---|
static Direction |
get(org.bukkit.block.BlockFace face) |
static Direction |
get(int id) |
static Direction |
get(org.bukkit.util.Vector v) |
float |
getPitch() |
float |
getYaw() |
static void |
main(java.lang.String[] args) |
org.bukkit.block.BlockFace |
toBlockFace() |
java.lang.Object |
toNMS() |
org.bukkit.util.Vector |
toVector() |
static Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction DOWN
public static final Direction UP
public static final Direction SOUTH
public static final Direction WEST
public static final Direction NORTH
public static final Direction EAST
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Direction get(int id)
public static Direction get(org.bukkit.block.BlockFace face)
public static Direction get(org.bukkit.util.Vector v)
public static void main(java.lang.String[] args)
public float getPitch()
public float getYaw()
public org.bukkit.block.BlockFace toBlockFace()
public java.lang.Object toNMS()
toNMS
in interface WrappedData
public org.bukkit.util.Vector toVector()