public enum Direction extends Enum<Direction>
Enum Constant and Description |
---|
CEILING_EAST |
CEILING_NORTH |
CEILING_SOUTH |
CEILING_WEST |
EAST |
FLOOR_EAST |
FLOOR_NORTH |
FLOOR_SOUTH |
FLOOR_WEST |
NORTH |
SOUTH |
WEST |
Modifier and Type | Field and Description |
---|---|
static double |
SCREEN_WIDTH |
Modifier and Type | Method and Description |
---|---|
static Direction |
fromBlockFace(org.bukkit.block.BlockFace attachedFace,
org.bukkit.block.BlockFace playerFace) |
org.bukkit.block.BlockFace |
getBlockFace() |
org.bukkit.Rotation |
getFrameOrientation() |
org.bukkit.util.Vector |
getGuiSupportVector() |
org.bukkit.util.Vector |
getNormalVector() |
org.bukkit.util.Vector |
getXDirection() |
org.bukkit.block.BlockFace |
getXDirectionFace() |
org.bukkit.util.Vector |
getYDirection() |
org.bukkit.block.BlockFace |
getYDirectionFace() |
static Direction |
valueOf(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.
|
static org.bukkit.util.Vector |
vectorize(org.bukkit.block.BlockFace blockFace) |
public static final Direction NORTH
public static final Direction EAST
public static final Direction SOUTH
public static final Direction WEST
public static final Direction FLOOR_NORTH
public static final Direction FLOOR_EAST
public static final Direction FLOOR_SOUTH
public static final Direction FLOOR_WEST
public static final Direction CEILING_NORTH
public static final Direction CEILING_EAST
public static final Direction CEILING_SOUTH
public static final Direction CEILING_WEST
public static final double SCREEN_WIDTH
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 static Direction fromBlockFace(org.bukkit.block.BlockFace attachedFace, org.bukkit.block.BlockFace playerFace)
public org.bukkit.Rotation getFrameOrientation()
public org.bukkit.util.Vector getGuiSupportVector()
public org.bukkit.util.Vector getNormalVector()
public org.bukkit.block.BlockFace getBlockFace()
public org.bukkit.util.Vector getXDirection()
public org.bukkit.util.Vector getYDirection()
public org.bukkit.block.BlockFace getXDirectionFace()
public org.bukkit.block.BlockFace getYDirectionFace()
public static org.bukkit.util.Vector vectorize(org.bukkit.block.BlockFace blockFace)
Copyright © 2021. All rights reserved.