@Environment(value=CLIENT) public enum Perspective extends Enum<Perspective>
Enum Constant and Description |
---|
FIRST_PERSON |
THIRD_PERSON_BACK |
THIRD_PERSON_FRONT |
Modifier and Type | Field and Description |
---|---|
private boolean |
firstPerson |
private boolean |
frontView |
private static Perspective[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
boolean |
isFirstPerson() |
boolean |
isFrontView() |
Perspective |
next() |
static Perspective |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Perspective[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Perspective FIRST_PERSON
public static final Perspective THIRD_PERSON_BACK
public static final Perspective THIRD_PERSON_FRONT
private static final Perspective[] VALUES
private boolean firstPerson
private boolean frontView
public static Perspective[] values()
for (Perspective c : Perspective.values()) System.out.println(c);
public static Perspective 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 boolean isFirstPerson()
public boolean isFrontView()
public Perspective next()