Package net.minecraft.client.render
Enum VertexFormatElement.Type
- All Implemented Interfaces:
Serializable,Comparable<VertexFormatElement.Type>,java.lang.constant.Constable
- Enclosing class:
- VertexFormatElement
@Environment(CLIENT) public static enum VertexFormatElement.Type extends Enum<VertexFormatElement.Type>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceVertexFormatElement.Type.StarterNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private IntConsumerfinisherprivate Stringnameprivate VertexFormatElement.Type.Starterstarter -
Constructor Summary
Constructors Modifier Constructor Description privateType(String name, VertexFormatElement.Type.Starter starter, IntConsumer intConsumer) -
Method Summary
Modifier and Type Method Description voidendDrawing(int elementIndex)StringgetName()private voidstartDrawing(int count, int glId, int stride, long pointer, int elementIndex)static VertexFormatElement.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static VertexFormatElement.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POSITION
-
NORMAL
-
COLOR
-
UV
-
PADDING
-
GENERIC
-
-
Field Details
-
name
-
starter
-
finisher
-
-
Constructor Details
-
Type
-
-
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
-
startDrawing
private void startDrawing(int count, int glId, int stride, long pointer, int elementIndex) -
endDrawing
public void endDrawing(int elementIndex) -
getName
-