Record Class MeshData.DrawState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.MeshData.DrawState
- Enclosing class:
MeshData
public static record MeshData.DrawState(VertexFormat format, int vertexCount, int indexCount, PrimitiveTopology primitiveTopology, IndexType indexType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexFormatThe field for theformatrecord component.private final intThe field for theindexCountrecord component.private final IndexTypeThe field for theindexTyperecord component.private final PrimitiveTopologyThe field for theprimitiveTopologyrecord component.private final intThe field for thevertexCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawState(VertexFormat format, int vertexCount, int indexCount, PrimitiveTopology primitiveTopology, IndexType indexType) Creates an instance of aDrawStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.Returns the value of theprimitiveTopologyrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevertexCountrecord component.
-
Field Details
-
format
The field for theformatrecord component. -
vertexCount
private final int vertexCountThe field for thevertexCountrecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component. -
primitiveTopology
The field for theprimitiveTopologyrecord component. -
indexType
The field for theindexTyperecord component.
-
-
Constructor Details
-
DrawState
public DrawState(VertexFormat format, int vertexCount, int indexCount, PrimitiveTopology primitiveTopology, IndexType indexType) Creates an instance of aDrawStaterecord class.- Parameters:
format- the value for theformatrecord componentvertexCount- the value for thevertexCountrecord componentindexCount- the value for theindexCountrecord componentprimitiveTopology- the value for theprimitiveTopologyrecord componentindexType- the value for theindexTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
vertexCount
public int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the
vertexCountrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
primitiveTopology
Returns the value of theprimitiveTopologyrecord component.- Returns:
- the value of the
primitiveTopologyrecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-