枚举 Perspective
- java.lang.Object
-
- java.lang.Enum<Perspective>
-
- net.minecraft.client.option.Perspective
-
- 所有已实现的接口:
Serializable,Comparable<Perspective>
@Environment(CLIENT) public enum Perspective extends Enum<Perspective>
- Mappings:
Namespace Name official dtyintermediary net/minecraft/class_5498named net/minecraft/client/option/Perspective
-
-
枚举常量概要
枚举常量 枚举常量 说明 FIRST_PERSONTHIRD_PERSON_BACKTHIRD_PERSON_FRONT
-
字段概要
字段 修饰符和类型 字段 说明 private booleanfirstPersonprivate booleanfrontViewprivate static Perspective[]VALUES
-
构造器概要
构造器 限定符 构造器 说明 privatePerspective(boolean firstPerson, boolean frontView)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanisFirstPerson()booleanisFrontView()Perspectivenext()static PerspectivevalueOf(String name)返回带有指定名称的该类型的枚举常量。static Perspective[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
FIRST_PERSON
public static final Perspective FIRST_PERSON
- Mappings:
Namespace Name Mixin selector official aLdty;a:Ldty;intermediary field_26664Lnet/minecraft/class_5498;field_26664:Lnet/minecraft/class_5498;named FIRST_PERSONLnet/minecraft/client/option/Perspective;FIRST_PERSON:Lnet/minecraft/client/option/Perspective;
-
THIRD_PERSON_BACK
public static final Perspective THIRD_PERSON_BACK
- Mappings:
Namespace Name Mixin selector official bLdty;b:Ldty;intermediary field_26665Lnet/minecraft/class_5498;field_26665:Lnet/minecraft/class_5498;named THIRD_PERSON_BACKLnet/minecraft/client/option/Perspective;THIRD_PERSON_BACK:Lnet/minecraft/client/option/Perspective;
-
THIRD_PERSON_FRONT
public static final Perspective THIRD_PERSON_FRONT
- Mappings:
Namespace Name Mixin selector official cLdty;c:Ldty;intermediary field_26666Lnet/minecraft/class_5498;field_26666:Lnet/minecraft/class_5498;named THIRD_PERSON_FRONTLnet/minecraft/client/option/Perspective;THIRD_PERSON_FRONT:Lnet/minecraft/client/option/Perspective;
-
-
字段详细资料
-
VALUES
private static final Perspective[] VALUES
- Mappings:
Namespace Name Mixin selector official dLdty;d:[Ldty;intermediary field_26667Lnet/minecraft/class_5498;field_26667:[Lnet/minecraft/class_5498;named VALUESLnet/minecraft/client/option/Perspective;VALUES:[Lnet/minecraft/client/option/Perspective;
-
firstPerson
private final boolean firstPerson
- Mappings:
Namespace Name Mixin selector official eLdty;e:Zintermediary field_26668Lnet/minecraft/class_5498;field_26668:Znamed firstPersonLnet/minecraft/client/option/Perspective;firstPerson:Z
-
frontView
private final boolean frontView
- Mappings:
Namespace Name Mixin selector official fLdty;f:Zintermediary field_26669Lnet/minecraft/class_5498;field_26669:Znamed frontViewLnet/minecraft/client/option/Perspective;frontView:Z
-
-
构造器详细资料
-
Perspective
private Perspective(boolean firstPerson, boolean frontView)- Mappings:
Namespace Name Mixin selector official <init>Ldty;<init>(Ljava/lang/String;IZZ)Vintermediary <init>Lnet/minecraft/class_5498;<init>(Ljava/lang/String;IZZ)Vnamed <init>Lnet/minecraft/client/option/Perspective;<init>(Ljava/lang/String;IZZ)V
-
-
方法详细资料
-
values
public static Perspective[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (Perspective c : Perspective.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static Perspective valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
isFirstPerson
public boolean isFirstPerson()
- Mappings:
Namespace Name Mixin selector official aLdty;a()Zintermediary method_31034Lnet/minecraft/class_5498;method_31034()Znamed isFirstPersonLnet/minecraft/client/option/Perspective;isFirstPerson()Z
-
isFrontView
public boolean isFrontView()
- Mappings:
Namespace Name Mixin selector official bLdty;b()Zintermediary method_31035Lnet/minecraft/class_5498;method_31035()Znamed isFrontViewLnet/minecraft/client/option/Perspective;isFrontView()Z
-
next
public Perspective next()
- Mappings:
Namespace Name Mixin selector official cLdty;c()Ldty;intermediary method_31036Lnet/minecraft/class_5498;method_31036()Lnet/minecraft/class_5498;named nextLnet/minecraft/client/option/Perspective;next()Lnet/minecraft/client/option/Perspective;
-
-