Package com.mojang.blaze3d.vertex
Enum Class VertexFormat.DrawMode
- All Implemented Interfaces:
 Serializable,Comparable<VertexFormat.DrawMode>,Constable
- Enclosing class:
 VertexFormat
- Mappings:
 Namespace Name named com/mojang/blaze3d/vertex/VertexFormat$DrawModeintermediary com/mojang/blaze3d/vertex/VertexFormat$class_5596official com/mojang/blaze3d/vertex/VertexFormat$b
- 
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> - 
Enum Constant Summary
Enum ConstantsEnum ConstantDescription - 
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe number of vertices needed to form an additional shape.final intThe number of vertices needed to form a first shape.final booleanWhether there are shared vertices in consecutive shapes. - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDrawMode(int firstVertexCount, int additionalVertexCount, boolean shareVertices)  - 
Method Summary
Modifier 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 named LINESLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;LINES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27377Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27377:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official aLcom/mojang/blaze3d/vertex/VertexFormat$b;a:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
LINE_STRIP
- Mappings:
 Namespace Name Mixin selector named LINE_STRIPLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;LINE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27378Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27378:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official bLcom/mojang/blaze3d/vertex/VertexFormat$b;b:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
DEBUG_LINES
- Mappings:
 Namespace Name Mixin selector named DEBUG_LINESLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;DEBUG_LINES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_29344Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_29344:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official cLcom/mojang/blaze3d/vertex/VertexFormat$b;c:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
DEBUG_LINE_STRIP
- Mappings:
 Namespace Name Mixin selector named DEBUG_LINE_STRIPLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;DEBUG_LINE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_29345Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_29345:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official dLcom/mojang/blaze3d/vertex/VertexFormat$b;d:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
TRIANGLES
- Mappings:
 Namespace Name Mixin selector named TRIANGLESLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLES:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27379Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27379:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official eLcom/mojang/blaze3d/vertex/VertexFormat$b;e:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
TRIANGLE_STRIP
- Mappings:
 Namespace Name Mixin selector named TRIANGLE_STRIPLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLE_STRIP:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27380Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27380:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official fLcom/mojang/blaze3d/vertex/VertexFormat$b;f:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
TRIANGLE_FAN
- Mappings:
 Namespace Name Mixin selector named TRIANGLE_FANLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;TRIANGLE_FAN:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27381Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27381:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official gLcom/mojang/blaze3d/vertex/VertexFormat$b;g:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 - 
QUADS
- Mappings:
 Namespace Name Mixin selector named QUADSLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;QUADS:Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;intermediary field_27382Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27382:Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;official hLcom/mojang/blaze3d/vertex/VertexFormat$b;h:Lcom/mojang/blaze3d/vertex/VertexFormat$b;
 
 - 
 - 
Field Details
- 
firstVertexCount
public final int firstVertexCountThe number of vertices needed to form a first shape.- Mappings:
 Namespace Name Mixin selector named firstVertexCountLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;firstVertexCount:Iintermediary field_27384Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27384:Iofficial iLcom/mojang/blaze3d/vertex/VertexFormat$b;i:I
 - 
additionalVertexCount
public final int additionalVertexCountThe 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 additionalVertexCountLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;additionalVertexCount:Iintermediary field_27385Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;field_27385:Iofficial jLcom/mojang/blaze3d/vertex/VertexFormat$b;j:I
 
 - 
 - 
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)Vintermediary <init>Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;<init>(Ljava/lang/String;IIIZ)Vofficial <init>Lcom/mojang/blaze3d/vertex/VertexFormat$b;<init>(Ljava/lang/String;IIIZ)V
 
 - 
 - 
Method Details
- 
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
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 nameNullPointerException- if the argument is null
 - 
getIndexCount
public int getIndexCount(int vertexCount) - Mappings:
 Namespace Name Mixin selector named getIndexCountLcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;getIndexCount(I)Iintermediary method_31973Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;method_31973(I)Iofficial aLcom/mojang/blaze3d/vertex/VertexFormat$b;a(I)I
 
 -