Package net.minecraft.client.render
Enum Class VertexFormat.DrawMode
- All Implemented Interfaces:
Serializable,Comparable<VertexFormat.DrawMode>,Constable
- Enclosing class:
VertexFormat
- Mappings:
Namespace Name intermediary net/minecraft/class_293$class_5596official eig$bnamed net/minecraft/client/render/VertexFormat$DrawMode
-
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 intfinal booleanWhether there are shared vertices in consecutive shapes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDrawMode(int glMode, 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 intermediary field_27377Lnet/minecraft/class_293$class_5596;field_27377:Lnet/minecraft/class_293$class_5596;official aLeig$b;a:Leig$b;named LINESLnet/minecraft/client/render/VertexFormat$DrawMode;LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
LINE_STRIP
- Mappings:
Namespace Name Mixin selector intermediary field_27378Lnet/minecraft/class_293$class_5596;field_27378:Lnet/minecraft/class_293$class_5596;official bLeig$b;b:Leig$b;named LINE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
DEBUG_LINES
- Mappings:
Namespace Name Mixin selector intermediary field_29344Lnet/minecraft/class_293$class_5596;field_29344:Lnet/minecraft/class_293$class_5596;official cLeig$b;c:Leig$b;named DEBUG_LINESLnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
DEBUG_LINE_STRIP
- Mappings:
Namespace Name Mixin selector intermediary field_29345Lnet/minecraft/class_293$class_5596;field_29345:Lnet/minecraft/class_293$class_5596;official dLeig$b;d:Leig$b;named DEBUG_LINE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLES
- Mappings:
Namespace Name Mixin selector intermediary field_27379Lnet/minecraft/class_293$class_5596;field_27379:Lnet/minecraft/class_293$class_5596;official eLeig$b;e:Leig$b;named TRIANGLESLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLE_STRIP
- Mappings:
Namespace Name Mixin selector intermediary field_27380Lnet/minecraft/class_293$class_5596;field_27380:Lnet/minecraft/class_293$class_5596;official fLeig$b;f:Leig$b;named TRIANGLE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLE_FAN
- Mappings:
Namespace Name Mixin selector intermediary field_27381Lnet/minecraft/class_293$class_5596;field_27381:Lnet/minecraft/class_293$class_5596;official gLeig$b;g:Leig$b;named TRIANGLE_FANLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_FAN:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
QUADS
- Mappings:
Namespace Name Mixin selector intermediary field_27382Lnet/minecraft/class_293$class_5596;field_27382:Lnet/minecraft/class_293$class_5596;official hLeig$b;h:Leig$b;named QUADSLnet/minecraft/client/render/VertexFormat$DrawMode;QUADS:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
-
Field Details
-
glMode
public final int glMode- Mappings:
Namespace Name Mixin selector intermediary field_27383Lnet/minecraft/class_293$class_5596;field_27383:Iofficial iLeig$b;i:Inamed glModeLnet/minecraft/client/render/VertexFormat$DrawMode;glMode:I
-
firstVertexCount
public final int firstVertexCountThe number of vertices needed to form a first shape.- Mappings:
Namespace Name Mixin selector intermediary field_27384Lnet/minecraft/class_293$class_5596;field_27384:Iofficial jLeig$b;j:Inamed firstVertexCountLnet/minecraft/client/render/VertexFormat$DrawMode;firstVertexCount:I
-
additionalVertexCount
public 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 intermediary field_27385Lnet/minecraft/class_293$class_5596;field_27385:Iofficial kLeig$b;k:Inamed additionalVertexCountLnet/minecraft/client/render/VertexFormat$DrawMode;additionalVertexCount:I
-
-
Constructor Details
-
DrawMode
private DrawMode(int glMode, int firstVertexCount, int additionalVertexCount, boolean shareVertices) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIIIZ)Vofficial <init>Leig$b;<init>(Ljava/lang/String;IIIIZ)Vnamed <init>Lnet/minecraft/client/render/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIIIZ)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 intermediary method_31973Lnet/minecraft/class_293$class_5596;method_31973(I)Iofficial aLeig$b;a(I)Inamed getIndexCountLnet/minecraft/client/render/VertexFormat$DrawMode;getIndexCount(I)I
-