Enum Class VertexFormat.DrawMode

java.lang.Object
java.lang.Enum<VertexFormat.DrawMode>
net.minecraft.client.render.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 net/minecraft/client/render/VertexFormat$DrawMode
intermediary net/minecraft/class_293$class_5596
official fgw$c
  • Enum Constant Details Link icon

    • LINES Link icon

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

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

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

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

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

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

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

      public static final VertexFormat.DrawMode QUADS
      Mappings:
      Namespace Name Mixin selector
      named QUADS Lnet/minecraft/client/render/VertexFormat$DrawMode;QUADS:Lnet/minecraft/client/render/VertexFormat$DrawMode;
      intermediary field_27382 Lnet/minecraft/class_293$class_5596;field_27382:Lnet/minecraft/class_293$class_5596;
      official h Lfgw$c;h:Lfgw$c;
  • Field Details Link icon

    • glMode Link icon

      public final int glMode
      Mappings:
      Namespace Name Mixin selector
      named glMode Lnet/minecraft/client/render/VertexFormat$DrawMode;glMode:I
      intermediary field_27383 Lnet/minecraft/class_293$class_5596;field_27383:I
      official i Lfgw$c;i:I
    • firstVertexCount Link icon

      public final int firstVertexCount
      The number of vertices needed to form a first shape.
      Mappings:
      Namespace Name Mixin selector
      named firstVertexCount Lnet/minecraft/client/render/VertexFormat$DrawMode;firstVertexCount:I
      intermediary field_27384 Lnet/minecraft/class_293$class_5596;field_27384:I
      official j Lfgw$c;j:I
    • additionalVertexCount Link icon

      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 Lnet/minecraft/client/render/VertexFormat$DrawMode;additionalVertexCount:I
      intermediary field_27385 Lnet/minecraft/class_293$class_5596;field_27385:I
      official k Lfgw$c;k:I
    • shareVertices Link icon

      public final boolean shareVertices
      Whether there are shared vertices in consecutive shapes.
      Mappings:
      Namespace Name Mixin selector
      named shareVertices Lnet/minecraft/client/render/VertexFormat$DrawMode;shareVertices:Z
      intermediary field_38878 Lnet/minecraft/class_293$class_5596;field_38878:Z
      official l Lfgw$c;l:Z
  • Constructor Details Link icon

    • DrawMode Link icon

      private DrawMode(int glMode, int firstVertexCount, int additionalVertexCount, boolean shareVertices)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIIIZ)V
      intermediary <init> Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIIIZ)V
      official <init> Lfgw$c;<init>(Ljava/lang/String;IIIIZ)V
  • Method Details Link icon

    • values Link icon

      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 Link icon

      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 Link icon

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