枚举 VertexFormat.DrawMode

    • 枚举常量详细资料

      • LINES

        public static final VertexFormat.DrawMode LINES
        Mappings:
        Namespace Name Mixin selector
        official a Ldpn$b;a:Ldpn$b;
        intermediary field_27377 Lnet/minecraft/class_293$class_5596;field_27377:Lnet/minecraft/class_293$class_5596;
        named LINES Lnet/minecraft/client/render/VertexFormat$DrawMode;LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • LINE_STRIP

        public static final VertexFormat.DrawMode LINE_STRIP
        Mappings:
        Namespace Name Mixin selector
        official b Ldpn$b;b:Ldpn$b;
        intermediary field_27378 Lnet/minecraft/class_293$class_5596;field_27378:Lnet/minecraft/class_293$class_5596;
        named LINE_STRIP Lnet/minecraft/client/render/VertexFormat$DrawMode;LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • DEBUG_LINES

        public static final VertexFormat.DrawMode DEBUG_LINES
        Mappings:
        Namespace Name Mixin selector
        official c Ldpn$b;c:Ldpn$b;
        intermediary field_29344 Lnet/minecraft/class_293$class_5596;field_29344:Lnet/minecraft/class_293$class_5596;
        named DEBUG_LINES Lnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • DEBUG_LINE_STRIP

        public static final VertexFormat.DrawMode DEBUG_LINE_STRIP
        Mappings:
        Namespace Name Mixin selector
        official d Ldpn$b;d:Ldpn$b;
        intermediary field_29345 Lnet/minecraft/class_293$class_5596;field_29345:Lnet/minecraft/class_293$class_5596;
        named DEBUG_LINE_STRIP Lnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • TRIANGLES

        public static final VertexFormat.DrawMode TRIANGLES
        Mappings:
        Namespace Name Mixin selector
        official e Ldpn$b;e:Ldpn$b;
        intermediary field_27379 Lnet/minecraft/class_293$class_5596;field_27379:Lnet/minecraft/class_293$class_5596;
        named TRIANGLES Lnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • TRIANGLE_STRIP

        public static final VertexFormat.DrawMode TRIANGLE_STRIP
        Mappings:
        Namespace Name Mixin selector
        official f Ldpn$b;f:Ldpn$b;
        intermediary field_27380 Lnet/minecraft/class_293$class_5596;field_27380:Lnet/minecraft/class_293$class_5596;
        named TRIANGLE_STRIP Lnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • TRIANGLE_FAN

        public static final VertexFormat.DrawMode TRIANGLE_FAN
        Mappings:
        Namespace Name Mixin selector
        official g Ldpn$b;g:Ldpn$b;
        intermediary field_27381 Lnet/minecraft/class_293$class_5596;field_27381:Lnet/minecraft/class_293$class_5596;
        named TRIANGLE_FAN Lnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_FAN:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      • QUADS

        public static final VertexFormat.DrawMode QUADS
        Mappings:
        Namespace Name Mixin selector
        official h Ldpn$b;h:Ldpn$b;
        intermediary field_27382 Lnet/minecraft/class_293$class_5596;field_27382:Lnet/minecraft/class_293$class_5596;
        named QUADS Lnet/minecraft/client/render/VertexFormat$DrawMode;QUADS:Lnet/minecraft/client/render/VertexFormat$DrawMode;
    • 字段详细资料

      • mode

        public final int mode
        Mappings:
        Namespace Name Mixin selector
        official i Ldpn$b;i:I
        intermediary field_27383 Lnet/minecraft/class_293$class_5596;field_27383:I
        named mode Lnet/minecraft/client/render/VertexFormat$DrawMode;mode:I
      • field_27384

        public final int field_27384
        Mappings:
        Namespace Name Mixin selector
        official j Ldpn$b;j:I
        intermediary field_27384 Lnet/minecraft/class_293$class_5596;field_27384:I
        named field_27384 Lnet/minecraft/client/render/VertexFormat$DrawMode;field_27384:I
      • field_27385

        public final int field_27385
        Mappings:
        Namespace Name Mixin selector
        official k Ldpn$b;k:I
        intermediary field_27385 Lnet/minecraft/class_293$class_5596;field_27385:I
        named field_27385 Lnet/minecraft/client/render/VertexFormat$DrawMode;field_27385:I
    • 构造器详细资料

      • DrawMode

        private DrawMode​(int mode,
                         int int2,
                         int int3)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldpn$b;<init>(Ljava/lang/String;IIII)V
        intermediary <init> Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIII)V
        named <init> Lnet/minecraft/client/render/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIII)V
    • 方法详细资料

      • values

        public static VertexFormat.DrawMode[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (VertexFormat.DrawMode c : VertexFormat.DrawMode.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static VertexFormat.DrawMode valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • getSize

        public int getSize​(int vertexCount)
        Mappings:
        Namespace Name Mixin selector
        official a Ldpn$b;a(I)I
        intermediary method_31973 Lnet/minecraft/class_293$class_5596;method_31973(I)I
        named getSize Lnet/minecraft/client/render/VertexFormat$DrawMode;getSize(I)I