Enum VertexFormatElement.Usage
- java.lang.Object
-
- java.lang.Enum<VertexFormatElement.Usage>
-
- net.minecraft.client.renderer.vertex.VertexFormatElement.Usage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VertexFormatElement.Usage>
- Enclosing class:
- VertexFormatElement
public static enum VertexFormatElement.Usage extends java.lang.Enum<VertexFormatElement.Usage>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
VertexFormatElement.Usage.ISetupState
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.IntConsumer
clearState
private java.lang.String
name
private VertexFormatElement.Usage.ISetupState
setupState
-
Constructor Summary
Constructors Modifier Constructor Description private
Usage(java.lang.String p_i225912_3_, VertexFormatElement.Usage.ISetupState p_i225912_4_, java.util.function.IntConsumer p_i225912_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBufferState(int p_227901_1_)
java.lang.String
getName()
private void
setupBufferState(int p_227902_1_, int p_227902_2_, int p_227902_3_, long p_227902_4_, int p_227902_6_)
static VertexFormatElement.Usage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VertexFormatElement.Usage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSITION
public static final VertexFormatElement.Usage POSITION
-
NORMAL
public static final VertexFormatElement.Usage NORMAL
-
COLOR
public static final VertexFormatElement.Usage COLOR
-
UV
public static final VertexFormatElement.Usage UV
-
PADDING
public static final VertexFormatElement.Usage PADDING
-
GENERIC
public static final VertexFormatElement.Usage GENERIC
-
-
Field Detail
-
name
private final java.lang.String name
-
setupState
private final VertexFormatElement.Usage.ISetupState setupState
-
clearState
private final java.util.function.IntConsumer clearState
-
-
Constructor Detail
-
Usage
private Usage(java.lang.String p_i225912_3_, VertexFormatElement.Usage.ISetupState p_i225912_4_, java.util.function.IntConsumer p_i225912_5_)
-
-
Method Detail
-
values
public static VertexFormatElement.Usage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VertexFormatElement.Usage c : VertexFormatElement.Usage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VertexFormatElement.Usage valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
setupBufferState
private void setupBufferState(int p_227902_1_, int p_227902_2_, int p_227902_3_, long p_227902_4_, int p_227902_6_)
-
clearBufferState
public void clearBufferState(int p_227901_1_)
-
getName
public java.lang.String getName()
-
-