枚举 VertexFormat.IntType

    • 枚举常量详细资料

      • BYTE

        public static final VertexFormat.IntType BYTE
        Mappings:
        Namespace Name Mixin selector
        official a Ldpn$a;a:Ldpn$a;
        intermediary field_27371 Lnet/minecraft/class_293$class_5595;field_27371:Lnet/minecraft/class_293$class_5595;
        named BYTE Lnet/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 b Ldpn$a;b:Ldpn$a;
        intermediary field_27372 Lnet/minecraft/class_293$class_5595;field_27372:Lnet/minecraft/class_293$class_5595;
        named SHORT Lnet/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 c Ldpn$a;c:Ldpn$a;
        intermediary field_27373 Lnet/minecraft/class_293$class_5595;field_27373:Lnet/minecraft/class_293$class_5595;
        named INT Lnet/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 d Ldpn$a;d:I
        intermediary field_27374 Lnet/minecraft/class_293$class_5595;field_27374:I
        named field_27374 Lnet/minecraft/client/render/VertexFormat$IntType;field_27374:I
      • size

        public final int size
        Mappings:
        Namespace Name Mixin selector
        official e Ldpn$a;e:I
        intermediary field_27375 Lnet/minecraft/class_293$class_5595;field_27375:I
        named size Lnet/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)V
        intermediary <init> Lnet/minecraft/class_293$class_5595;<init>(Ljava/lang/String;III)V
        named <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 a Ldpn$a;a(I)Ldpn$a;
        intermediary method_31972 Lnet/minecraft/class_293$class_5595;method_31972(I)Lnet/minecraft/class_293$class_5595;
        named getSmallestTypeFor Lnet/minecraft/client/render/VertexFormat$IntType;getSmallestTypeFor(I)Lnet/minecraft/client/render/VertexFormat$IntType;