Package com.mojang.blaze3d.vertex
Record Class BufferBuilder.DrawState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.BufferBuilder.DrawState
- Enclosing class:
- BufferBuilder
public static record BufferBuilder.DrawState(VertexFormat format, int vertexCount, int indexCount, VertexFormat.Mode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final VertexFormatThe field for theformatrecord component.private final intThe field for theindexCountrecord component.private final booleanThe field for theindexOnlyrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component.private final VertexFormat.ModeThe field for themoderecord component.private final booleanThe field for thesequentialIndexrecord component.private final intThe field for thevertexCountrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDrawState(VertexFormat format, int vertexCount, int indexCount, VertexFormat.Mode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex) Creates an instance of aDrawStaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintfinal 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.intprivate intintintReturns the value of theindexCountrecord component.booleanReturns the value of theindexOnlyrecord component.Returns the value of theindexTyperecord component.mode()Returns the value of themoderecord component.booleanReturns the value of thesequentialIndexrecord component.final StringtoString()Returns a string representation of this record class.intintintintReturns the value of thevertexCountrecord component.
- 
Field Details- 
formatThe field for theformatrecord component.
- 
vertexCountprivate final int vertexCountThe field for thevertexCountrecord component.
- 
indexCountprivate final int indexCountThe field for theindexCountrecord component.
- 
modeThe field for themoderecord component.
- 
indexTypeThe field for theindexTyperecord component.
- 
indexOnlyprivate final boolean indexOnlyThe field for theindexOnlyrecord component.
- 
sequentialIndexprivate final boolean sequentialIndexThe field for thesequentialIndexrecord component.
 
- 
- 
Constructor Details- 
DrawStatepublic DrawState(VertexFormat format, int vertexCount, int indexCount, VertexFormat.Mode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex) Creates an instance of aDrawStaterecord class.- Parameters:
- format- the value for the- formatrecord component
- vertexCount- the value for the- vertexCountrecord component
- indexCount- the value for the- indexCountrecord component
- mode- the value for the- moderecord component
- indexType- the value for the- indexTyperecord component
- indexOnly- the value for the- indexOnlyrecord component
- sequentialIndex- the value for the- sequentialIndexrecord component
 
 
- 
- 
Method Details- 
vertexBufferSizepublic int vertexBufferSize()
- 
vertexBufferStartpublic int vertexBufferStart()
- 
vertexBufferEndpublic int vertexBufferEnd()
- 
indexBufferStartpublic int indexBufferStart()
- 
indexBufferEndpublic int indexBufferEnd()
- 
indexBufferSizeprivate int indexBufferSize()
- 
bufferSizepublic int bufferSize()
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
formatReturns the value of theformatrecord component.- Returns:
- the value of the formatrecord component
 
- 
vertexCountpublic int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the vertexCountrecord component
 
- 
indexCountpublic int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the indexCountrecord component
 
- 
modeReturns the value of themoderecord component.- Returns:
- the value of the moderecord component
 
- 
indexTypeReturns the value of theindexTyperecord component.- Returns:
- the value of the indexTyperecord component
 
- 
indexOnlypublic boolean indexOnly()Returns the value of theindexOnlyrecord component.- Returns:
- the value of the indexOnlyrecord component
 
- 
sequentialIndexpublic boolean sequentialIndex()Returns the value of thesequentialIndexrecord component.- Returns:
- the value of the sequentialIndexrecord component
 
 
-