Enum Class VertexFormat.DrawMode

java.lang.Object
java.lang.Enum<VertexFormat.DrawMode>
com.mojang.blaze3d.vertex.VertexFormat.DrawMode
All Implemented Interfaces:
Serializable, Comparable<VertexFormat.DrawMode>, Constable
Enclosing class:
VertexFormat

@Environment(CLIENT) public static enum VertexFormat.DrawMode extends Enum<VertexFormat.DrawMode>
Mappings:
Namespace Name
named com/mojang/blaze3d/vertex/VertexFormat$DrawMode
intermediary com/mojang/blaze3d/vertex/VertexFormat$class_5596
official com/mojang/blaze3d/vertex/VertexFormat$b
  • Enum Constant Details

    • LINES

      public static final VertexFormat.DrawMode LINES
      Mappings:
      Namespace Name Mixin selector
      named LINES Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;LINES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27377 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27377:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official a Lcom/mojang/blaze3d/vertex/VertexFormat$b;a:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • LINE_STRIP

      public static final VertexFormat.DrawMode LINE_STRIP
      Mappings:
      Namespace Name Mixin selector
      named LINE_STRIP Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;LINE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27378 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27378:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official b Lcom/mojang/blaze3d/vertex/VertexFormat$b;b:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • DEBUG_LINES

      public static final VertexFormat.DrawMode DEBUG_LINES
      Mappings:
      Namespace Name Mixin selector
      named DEBUG_LINES Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;DEBUG_LINES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_29344 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_29344:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official c Lcom/mojang/blaze3d/vertex/VertexFormat$b;c:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • DEBUG_LINE_STRIP

      public static final VertexFormat.DrawMode DEBUG_LINE_STRIP
      Mappings:
      Namespace Name Mixin selector
      named DEBUG_LINE_STRIP Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;DEBUG_LINE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_29345 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_29345:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official d Lcom/mojang/blaze3d/vertex/VertexFormat$b;d:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • TRIANGLES

      public static final VertexFormat.DrawMode TRIANGLES
      Mappings:
      Namespace Name Mixin selector
      named TRIANGLES Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27379 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27379:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official e Lcom/mojang/blaze3d/vertex/VertexFormat$b;e:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • TRIANGLE_STRIP

      public static final VertexFormat.DrawMode TRIANGLE_STRIP
      Mappings:
      Namespace Name Mixin selector
      named TRIANGLE_STRIP Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27380 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27380:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official f Lcom/mojang/blaze3d/vertex/VertexFormat$b;f:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • TRIANGLE_FAN

      public static final VertexFormat.DrawMode TRIANGLE_FAN
      Mappings:
      Namespace Name Mixin selector
      named TRIANGLE_FAN Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLE_FAN:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27381 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27381:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official g Lcom/mojang/blaze3d/vertex/VertexFormat$b;g:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
    • QUADS

      public static final VertexFormat.DrawMode QUADS
      Mappings:
      Namespace Name Mixin selector
      named QUADS Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;QUADS:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;
      intermediary field_27382 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27382:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;
      official h Lcom/mojang/blaze3d/vertex/VertexFormat$b;h:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
  • Field Details

    • firstVertexCount

      public final int firstVertexCount
      The number of vertices needed to form a first shape.
      Mappings:
      Namespace Name Mixin selector
      named firstVertexCount Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;firstVertexCount:I
      intermediary field_27384 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27384:I
      official i Lcom/mojang/blaze3d/vertex/VertexFormat$b;i:I
    • additionalVertexCount

      public final int additionalVertexCount
      The number of vertices needed to form an additional shape. In other words, it's firstVertexCount - s where s is the number of vertices shared with the previous shape.
      Mappings:
      Namespace Name Mixin selector
      named additionalVertexCount Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;additionalVertexCount:I
      intermediary field_27385 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27385:I
      official j Lcom/mojang/blaze3d/vertex/VertexFormat$b;j:I
    • shareVertices

      public final boolean shareVertices
      Whether there are shared vertices in consecutive shapes.
      Mappings:
      Namespace Name Mixin selector
      named shareVertices Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;shareVertices:Z
      intermediary field_38878 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_38878:Z
      official k Lcom/mojang/blaze3d/vertex/VertexFormat$b;k:Z
  • Constructor Details

    • DrawMode

      private DrawMode(int firstVertexCount, int additionalVertexCount, boolean shareVertices)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIIZ)V
      intermediary <init> Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;<init>(Ljava/lang/String;IIIZ)V
      official <init> Lcom/mojang/blaze3d/vertex/VertexFormat$b;<init>(Ljava/lang/String;IIIZ)V
  • Method Details

    • values

      public static VertexFormat.DrawMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VertexFormat.DrawMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIndexCount

      public int getIndexCount(int vertexCount)
      Mappings:
      Namespace Name Mixin selector
      named getIndexCount Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;getIndexCount(I)I
      intermediary method_31973 Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;method_31973(I)I
      official a Lcom/mojang/blaze3d/vertex/VertexFormat$b;a(I)I