Package net.minecraft.client.render
Enum Class VertexFormat.DrawMode
- All Implemented Interfaces:
Serializable,Comparable<VertexFormat.DrawMode>,Constable
- Enclosing class:
- VertexFormat
- Mappings:
Namespace Name official dqp$bintermediary net/minecraft/class_293$class_5596named 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSize(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 aLdqp$b;a:Ldqp$b;intermediary field_27377Lnet/minecraft/class_293$class_5596;field_27377:Lnet/minecraft/class_293$class_5596;named LINESLnet/minecraft/client/render/VertexFormat$DrawMode;LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
LINE_STRIP
- Mappings:
Namespace Name Mixin selector official bLdqp$b;b:Ldqp$b;intermediary field_27378Lnet/minecraft/class_293$class_5596;field_27378:Lnet/minecraft/class_293$class_5596;named LINE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
DEBUG_LINES
- Mappings:
Namespace Name Mixin selector official cLdqp$b;c:Ldqp$b;intermediary field_29344Lnet/minecraft/class_293$class_5596;field_29344:Lnet/minecraft/class_293$class_5596;named DEBUG_LINESLnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
DEBUG_LINE_STRIP
- Mappings:
Namespace Name Mixin selector official dLdqp$b;d:Ldqp$b;intermediary field_29345Lnet/minecraft/class_293$class_5596;field_29345:Lnet/minecraft/class_293$class_5596;named DEBUG_LINE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;DEBUG_LINE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLES
- Mappings:
Namespace Name Mixin selector official eLdqp$b;e:Ldqp$b;intermediary field_27379Lnet/minecraft/class_293$class_5596;field_27379:Lnet/minecraft/class_293$class_5596;named TRIANGLESLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLES:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLE_STRIP
- Mappings:
Namespace Name Mixin selector official fLdqp$b;f:Ldqp$b;intermediary field_27380Lnet/minecraft/class_293$class_5596;field_27380:Lnet/minecraft/class_293$class_5596;named TRIANGLE_STRIPLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_STRIP:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
TRIANGLE_FAN
- Mappings:
Namespace Name Mixin selector official gLdqp$b;g:Ldqp$b;intermediary field_27381Lnet/minecraft/class_293$class_5596;field_27381:Lnet/minecraft/class_293$class_5596;named TRIANGLE_FANLnet/minecraft/client/render/VertexFormat$DrawMode;TRIANGLE_FAN:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
QUADS
- Mappings:
Namespace Name Mixin selector official hLdqp$b;h:Ldqp$b;intermediary field_27382Lnet/minecraft/class_293$class_5596;field_27382:Lnet/minecraft/class_293$class_5596;named QUADSLnet/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 iLdqp$b;i:Iintermediary field_27383Lnet/minecraft/class_293$class_5596;field_27383:Inamed modeLnet/minecraft/client/render/VertexFormat$DrawMode;mode:I
-
vertexCount
public final int vertexCount- Mappings:
Namespace Name Mixin selector official jLdqp$b;j:Iintermediary field_27384Lnet/minecraft/class_293$class_5596;field_27384:Inamed vertexCountLnet/minecraft/client/render/VertexFormat$DrawMode;vertexCount:I
-
size
public final int size- Mappings:
Namespace Name Mixin selector official kLdqp$b;k:Iintermediary field_27385Lnet/minecraft/class_293$class_5596;field_27385:Inamed sizeLnet/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>Ldqp$b;<init>(Ljava/lang/String;IIII)Vintermediary <init>Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIII)Vnamed <init>Lnet/minecraft/client/render/VertexFormat$DrawMode;<init>(Ljava/lang/String;IIII)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
-
getSize
public int getSize(int vertexCount)- Mappings:
Namespace Name Mixin selector official aLdqp$b;a(I)Iintermediary method_31973Lnet/minecraft/class_293$class_5596;method_31973(I)Inamed getSizeLnet/minecraft/client/render/VertexFormat$DrawMode;getSize(I)I
-