枚举 VertexFormat.IntType
- java.lang.Object
-
- java.lang.Enum<VertexFormat.IntType>
-
- net.minecraft.client.render.VertexFormat.IntType
-
- 所有已实现的接口:
Serializable,Comparable<VertexFormat.IntType>
- 封闭类:
- VertexFormat
@Environment(CLIENT) public static enum VertexFormat.IntType extends Enum<VertexFormat.IntType>
- Mappings:
Namespace Name official dpn$aintermediary net/minecraft/class_293$class_5595named net/minecraft/client/render/VertexFormat$IntType
-
-
字段概要
字段 修饰符和类型 字段 说明 intfield_27374intsize
-
构造器概要
构造器 限定符 构造器 说明 privateIntType(int int2, int size)
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static VertexFormat.IntTypegetSmallestTypeFor(int number)Gets the smallest type in which the given number fits.static VertexFormat.IntTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static VertexFormat.IntType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
BYTE
public static final VertexFormat.IntType BYTE
- Mappings:
Namespace Name Mixin selector official aLdpn$a;a:Ldpn$a;intermediary field_27371Lnet/minecraft/class_293$class_5595;field_27371:Lnet/minecraft/class_293$class_5595;named BYTELnet/minecraft/client/render/VertexFormat$IntType;BYTE:Lnet/minecraft/client/render/VertexFormat$IntType;
-
SHORT
public static final VertexFormat.IntType SHORT
- Mappings:
Namespace Name Mixin selector official bLdpn$a;b:Ldpn$a;intermediary field_27372Lnet/minecraft/class_293$class_5595;field_27372:Lnet/minecraft/class_293$class_5595;named SHORTLnet/minecraft/client/render/VertexFormat$IntType;SHORT:Lnet/minecraft/client/render/VertexFormat$IntType;
-
INT
public static final VertexFormat.IntType INT
- Mappings:
Namespace Name Mixin selector official cLdpn$a;c:Ldpn$a;intermediary field_27373Lnet/minecraft/class_293$class_5595;field_27373:Lnet/minecraft/class_293$class_5595;named INTLnet/minecraft/client/render/VertexFormat$IntType;INT:Lnet/minecraft/client/render/VertexFormat$IntType;
-
-
字段详细资料
-
field_27374
public final int field_27374
- Mappings:
Namespace Name Mixin selector official dLdpn$a;d:Iintermediary field_27374Lnet/minecraft/class_293$class_5595;field_27374:Inamed field_27374Lnet/minecraft/client/render/VertexFormat$IntType;field_27374:I
-
size
public final int size
- Mappings:
Namespace Name Mixin selector official eLdpn$a;e:Iintermediary field_27375Lnet/minecraft/class_293$class_5595;field_27375:Inamed sizeLnet/minecraft/client/render/VertexFormat$IntType;size:I
-
-
构造器详细资料
-
IntType
private IntType(int int2, int size)- Mappings:
Namespace Name Mixin selector official <init>Ldpn$a;<init>(Ljava/lang/String;III)Vintermediary <init>Lnet/minecraft/class_293$class_5595;<init>(Ljava/lang/String;III)Vnamed <init>Lnet/minecraft/client/render/VertexFormat$IntType;<init>(Ljava/lang/String;III)V
-
-
方法详细资料
-
values
public static VertexFormat.IntType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (VertexFormat.IntType c : VertexFormat.IntType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static VertexFormat.IntType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getSmallestTypeFor
public static VertexFormat.IntType getSmallestTypeFor(int number)
Gets the smallest type in which the given number fits.- 参数:
number- a number from 8 to 32 bits of memory- 返回:
- the smallest type
- Mappings:
Namespace Name Mixin selector official aLdpn$a;a(I)Ldpn$a;intermediary method_31972Lnet/minecraft/class_293$class_5595;method_31972(I)Lnet/minecraft/class_293$class_5595;named getSmallestTypeForLnet/minecraft/client/render/VertexFormat$IntType;getSmallestTypeFor(I)Lnet/minecraft/client/render/VertexFormat$IntType;
-
-