Package net.minecraft.client.render
Enum VertexFormat.DrawMode
- All Implemented Interfaces:
Serializable
,Comparable<VertexFormat.DrawMode>
,java.lang.constant.Constable
- Enclosing class:
- VertexFormat
@Environment(CLIENT) public static enum VertexFormat.DrawMode extends Enum<VertexFormat.DrawMode>
- Mappings:
Namespace Name official dlw$b
intermediary net/minecraft/class_293$class_5596
named 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 Constants Enum Constant Description LINE_STRIP
LINES
QUADS
TRIANGLE_FAN
TRIANGLE_STRIP
TRIANGLES
-
Field Summary
Fields Modifier and Type Field Description int
field_27384
int
field_27385
int
mode
-
Constructor Summary
Constructors Modifier Constructor Description private
DrawMode(int mode, int int2, int int3)
-
Method Summary
Modifier and Type Method Description int
getSize(int vertexCount)
static VertexFormat.DrawMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static VertexFormat.DrawMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LINES
- Mappings:
Namespace Name Mixin selector official a
Ldlw$b;a:Ldlw$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
Ldlw$b;b:Ldlw$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;
-
TRIANGLES
- Mappings:
Namespace Name Mixin selector official c
Ldlw$b;c:Ldlw$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 d
Ldlw$b;d:Ldlw$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 e
Ldlw$b;e:Ldlw$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 f
Ldlw$b;f:Ldlw$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
-
mode
public final int mode- Mappings:
Namespace Name Mixin selector official g
Ldlw$b;g:I
intermediary field_27383
Lnet/minecraft/class_293$class_5596;field_27383:I
named mode
Lnet/minecraft/client/render/VertexFormat$DrawMode;mode:I
-
field_27384
public final int field_27384- Mappings:
Namespace Name Mixin selector official h
Ldlw$b;h:I
intermediary field_27384
Lnet/minecraft/class_293$class_5596;field_27384:I
named field_27384
Lnet/minecraft/client/render/VertexFormat$DrawMode;field_27384:I
-
field_27385
public final int field_27385- Mappings:
Namespace Name Mixin selector official i
Ldlw$b;i:I
intermediary field_27385
Lnet/minecraft/class_293$class_5596;field_27385:I
named field_27385
Lnet/minecraft/client/render/VertexFormat$DrawMode;field_27385:I
-
-
Constructor Details
-
DrawMode
private DrawMode(int mode, int int2, int int3)- Mappings:
Namespace Name Mixin selector official <init>
Ldlw$b;<init>(Ljava/lang/String;IIII)V
intermediary <init>
Lnet/minecraft/class_293$class_5596;<init>(Ljava/lang/String;IIII)V
named <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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSize
public int getSize(int vertexCount)- Mappings:
Namespace Name Mixin selector official a
Ldlw$b;a(I)I
intermediary method_31973
Lnet/minecraft/class_293$class_5596;method_31973(I)I
named getSize
Lnet/minecraft/client/render/VertexFormat$DrawMode;getSize(I)I
-