Package net.minecraft.client.render
Class VertexFormatElement
java.lang.Object
net.minecraft.client.render.VertexFormatElement
@Environment(CLIENT) public class VertexFormatElement extends Object
Represents a singular field within a larger vertex format.
This element comprises a data type, a field length, and the corresponding GL element type to which this field corresponds.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVertexFormatElement.Formatstatic classVertexFormatElement.Type -
Field Summary
Fields Modifier and Type Field Description private intbyteLengthThe total length of this element (in bytes).private VertexFormatElement.FormatdataTypeprivate intlengthprivate static LoggerLOGGERprivate inttextureIndexprivate VertexFormatElement.Typetype -
Constructor Summary
Constructors Constructor Description VertexFormatElement(int textureIndex, VertexFormatElement.Format dataType, VertexFormatElement.Type type, int length) -
Method Summary
Modifier and Type Method Description voidendDrawing()booleanequals(Object o)intgetByteLength()VertexFormatElement.FormatgetDataType()intgetTextureIndex()VertexFormatElement.TypegetType()inthashCode()private booleanisValidType(int index, VertexFormatElement.Type type)voidstartDrawing(long pointer, int stride)StringtoString()
-
Field Details
-
LOGGER
-
dataType
-
type
-
textureIndex
private final int textureIndex -
length
private final int length -
byteLength
private final int byteLengthThe total length of this element (in bytes).
-
-
Constructor Details
-
VertexFormatElement
public VertexFormatElement(int textureIndex, VertexFormatElement.Format dataType, VertexFormatElement.Type type, int length)
-
-
Method Details
-
isValidType
-
getDataType
-
getType
-
getTextureIndex
public final int getTextureIndex() -
toString
-
getByteLength
public final int getByteLength() -
equals
-
hashCode
public int hashCode() -
startDrawing
public void startDrawing(long pointer, int stride) -
endDrawing
public void endDrawing()
-