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$DrawMode
intermediary com/mojang/blaze3d/vertex/VertexFormat$class_5596
official 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 int
The number of vertices needed to form an additional shape.final int
The number of vertices needed to form a first shape.final boolean
Whether there are shared vertices in consecutive shapes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DrawMode
(int firstVertexCount, int additionalVertexCount, boolean shareVertices) -
Method Summary
Modifier and TypeMethodDescriptionint
getIndexCount
(int vertexCount) static VertexFormat.DrawMode
Returns 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 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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 firstVertexCountThe 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 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 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
-
-
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
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 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
-