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
official dsb$b
intermediary net/minecraft/class_293$class_5596
named net/minecraft/client/render/VertexFormat$DrawMode
  • Enum Constant Details

    • LINES

      public static final VertexFormat.DrawMode LINES
      Mappings:
      Namespace Name Mixin selector
      official a Ldsb$b;a:Ldsb$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 Ldsb$b;b:Ldsb$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 Ldsb$b;c:Ldsb$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 Ldsb$b;d:Ldsb$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 Ldsb$b;e:Ldsb$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 Ldsb$b;f:Ldsb$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 Ldsb$b;g:Ldsb$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 Ldsb$b;h:Ldsb$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;
  • Field Details

    • mode

      public final int mode
      Mappings:
      Namespace Name Mixin selector
      official i Ldsb$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
    • vertexCount

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

      public final int size
      Mappings:
      Namespace Name Mixin selector
      official k Ldsb$b;k:I
      intermediary field_27385 Lnet/minecraft/class_293$class_5596;field_27385:I
      named size Lnet/minecraft/client/render/VertexFormat$DrawMode;size:I
  • Constructor Details

    • DrawMode

      private DrawMode(int mode, int vertexCount, int size)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldsb$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
  • 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
    • getSize

      public int getSize(int vertexCount)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsb$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