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>
-
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
method_31973(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
-
LINE_STRIP
-
TRIANGLES
-
TRIANGLE_STRIP
-
TRIANGLE_FAN
-
QUADS
-
-
Field Details
-
mode
public final int mode -
field_27384
public final int field_27384 -
field_27385
public final int field_27385
-
-
Constructor Details
-
DrawMode
private DrawMode(int mode, int int2, int int3)
-
-
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
-
method_31973
public int method_31973(int vertexCount)
-