Package net.minecraft.client.render
Enum Class VertexFormat.DrawMode
- All Implemented Interfaces:
- Serializable,- Comparable<VertexFormat.DrawMode>,- Constable
- Enclosing class:
- VertexFormat
- Mappings:
- Namespace - Name - official - eio$b- intermediary - net/minecraft/class_293$class_5596- named - net/minecraft/client/render/VertexFormat$DrawMode
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal intThe number of vertices needed to form an additional shape.final intThe number of vertices needed to form a first shape.final intfinal booleanWhether there are shared vertices in consecutive shapes.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateDrawMode(int glMode, int firstVertexCount, int additionalVertexCount, boolean shareVertices) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetIndexCount(int vertexCount) static VertexFormat.DrawModeReturns the enum constant of this class with the specified name.static VertexFormat.DrawMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
LINES- Mappings:
- Namespace - Name - Mixin selector - official - a- Leio$b;a:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - b- Leio$b;b:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - c- Leio$b;c:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - d- Leio$b;d:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - e- Leio$b;e:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - f- Leio$b;f:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - g- Leio$b;g:Leio$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- Mappings:
- Namespace - Name - Mixin selector - official - h- Leio$b;h:Leio$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- 
glModepublic final int glMode- Mappings:
- Namespace - Name - Mixin selector - official - i- Leio$b;i:I- intermediary - field_27383- Lnet/minecraft/class_293$class_5596;field_27383:I- named - glMode- Lnet/minecraft/client/render/VertexFormat$DrawMode;glMode:I
 
- 
firstVertexCountpublic final int firstVertexCountThe number of vertices needed to form a first shape.- Mappings:
- Namespace - Name - Mixin selector - official - j- Leio$b;j:I- intermediary - field_27384- Lnet/minecraft/class_293$class_5596;field_27384:I- named - firstVertexCount- Lnet/minecraft/client/render/VertexFormat$DrawMode;firstVertexCount:I
 
- 
additionalVertexCountpublic final int additionalVertexCountThe number of vertices needed to form an additional shape. In other words, it'sfirstVertexCount - swheresis the number of vertices shared with the previous shape.- Mappings:
- Namespace - Name - Mixin selector - official - k- Leio$b;k:I- intermediary - field_27385- Lnet/minecraft/class_293$class_5596;field_27385:I- named - additionalVertexCount- Lnet/minecraft/client/render/VertexFormat$DrawMode;additionalVertexCount:I
 
 
- 
- 
Constructor Details- 
DrawModeprivate DrawMode(int glMode, int firstVertexCount, int additionalVertexCount, boolean shareVertices) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leio$b;<init>(Ljava/lang/String;IIIIZ)V- intermediary - <init>- Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIIIZ)V- named - <init>- Lnet/minecraft/client/render/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIIIZ)V
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getIndexCountpublic int getIndexCount(int vertexCount) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leio$b;a(I)I- intermediary - method_31973- Lnet/minecraft/class_293$class_5596;method_31973(I)I- named - getIndexCount- Lnet/minecraft/client/render/VertexFormat$DrawMode;getIndexCount(I)I
 
 
-