Package net.minecraft.client.option
Enum Perspective
- All Implemented Interfaces:
Serializable
,Comparable<Perspective>
,java.lang.constant.Constable
@Environment(CLIENT) public enum Perspective extends Enum<Perspective>
- Mappings:
Namespace Name official dpw
intermediary net/minecraft/class_5498
named net/minecraft/client/option/Perspective
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST_PERSON
THIRD_PERSON_BACK
THIRD_PERSON_FRONT
-
Field Summary
Fields Modifier and Type Field Description private boolean
firstPerson
private boolean
frontView
private static Perspective[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
Perspective(boolean firstPerson, boolean frontView)
-
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
FIRST_PERSON
- Mappings:
Namespace Name Mixin selector official a
Ldpw;a:Ldpw;
intermediary field_26664
Lnet/minecraft/class_5498;field_26664:Lnet/minecraft/class_5498;
named FIRST_PERSON
Lnet/minecraft/client/option/Perspective;FIRST_PERSON:Lnet/minecraft/client/option/Perspective;
-
THIRD_PERSON_BACK
- Mappings:
Namespace Name Mixin selector official b
Ldpw;b:Ldpw;
intermediary field_26665
Lnet/minecraft/class_5498;field_26665:Lnet/minecraft/class_5498;
named THIRD_PERSON_BACK
Lnet/minecraft/client/option/Perspective;THIRD_PERSON_BACK:Lnet/minecraft/client/option/Perspective;
-
THIRD_PERSON_FRONT
- Mappings:
Namespace Name Mixin selector official c
Ldpw;c:Ldpw;
intermediary field_26666
Lnet/minecraft/class_5498;field_26666:Lnet/minecraft/class_5498;
named THIRD_PERSON_FRONT
Lnet/minecraft/client/option/Perspective;THIRD_PERSON_FRONT:Lnet/minecraft/client/option/Perspective;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official d
Ldpw;d:[Ldpw;
intermediary field_26667
Lnet/minecraft/class_5498;field_26667:[Lnet/minecraft/class_5498;
named VALUES
Lnet/minecraft/client/option/Perspective;VALUES:[Lnet/minecraft/client/option/Perspective;
-
firstPerson
private final boolean firstPerson- Mappings:
Namespace Name Mixin selector official e
Ldpw;e:Z
intermediary field_26668
Lnet/minecraft/class_5498;field_26668:Z
named firstPerson
Lnet/minecraft/client/option/Perspective;firstPerson:Z
-
frontView
private final boolean frontView- Mappings:
Namespace Name Mixin selector official f
Ldpw;f:Z
intermediary field_26669
Lnet/minecraft/class_5498;field_26669:Z
named frontView
Lnet/minecraft/client/option/Perspective;frontView:Z
-
-
Constructor Details
-
Perspective
private Perspective(boolean firstPerson, boolean frontView)- Mappings:
Namespace Name Mixin selector official <init>
Ldpw;<init>(Ljava/lang/String;IZZ)V
intermediary <init>
Lnet/minecraft/class_5498;<init>(Ljava/lang/String;IZZ)V
named <init>
Lnet/minecraft/client/option/Perspective;<init>(Ljava/lang/String;IZZ)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isFirstPerson
public boolean isFirstPerson()- Mappings:
Namespace Name Mixin selector official a
Ldpw;a()Z
intermediary method_31034
Lnet/minecraft/class_5498;method_31034()Z
named isFirstPerson
Lnet/minecraft/client/option/Perspective;isFirstPerson()Z
-
isFrontView
public boolean isFrontView()- Mappings:
Namespace Name Mixin selector official b
Ldpw;b()Z
intermediary method_31035
Lnet/minecraft/class_5498;method_31035()Z
named isFrontView
Lnet/minecraft/client/option/Perspective;isFrontView()Z
-
next
- Mappings:
Namespace Name Mixin selector official c
Ldpw;c()Ldpw;
intermediary method_31036
Lnet/minecraft/class_5498;method_31036()Lnet/minecraft/class_5498;
named next
Lnet/minecraft/client/option/Perspective;next()Lnet/minecraft/client/option/Perspective;
-