public enum LeverDirection extends Enum<LeverDirection>
| Enum Constant and Description |
|---|
DOWN_EAST_WEST |
DOWN_NORTH_SOUTH |
EAST |
NORTH |
SOUTH |
UP_EAST_WEST |
UP_NORTH_SOUTH |
WEST |
| Modifier and Type | Method and Description |
|---|---|
static LeverDirection |
forDirection(Direction clickedSide,
Direction playerDirection) |
static LeverDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeverDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeverDirection DOWN_EAST_WEST
public static final LeverDirection EAST
public static final LeverDirection WEST
public static final LeverDirection SOUTH
public static final LeverDirection NORTH
public static final LeverDirection UP_NORTH_SOUTH
public static final LeverDirection UP_EAST_WEST
public static final LeverDirection DOWN_NORTH_SOUTH
public static LeverDirection[] values()
for (LeverDirection c : LeverDirection.values()) System.out.println(c);
public static LeverDirection 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 LeverDirection forDirection(Direction clickedSide, Direction playerDirection)
Copyright © 2020. All rights reserved.