Record Class SectionMesh.SectionDraw
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.SectionMesh.SectionDraw
- Enclosing interface:
SectionMesh
public static record SectionMesh.SectionDraw(int indexCount, VertexFormat.IndexType indexType, boolean hasCustomIndexBuffer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thehasCustomIndexBufferrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionDraw(int indexCount, VertexFormat.IndexType indexType, boolean hasCustomIndexBuffer) Creates an instance of aSectionDrawrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasCustomIndexBufferrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
indexCount
private final int indexCountThe field for theindexCountrecord component. -
indexType
The field for theindexTyperecord component. -
hasCustomIndexBuffer
private final boolean hasCustomIndexBufferThe field for thehasCustomIndexBufferrecord component.
-
-
Constructor Details
-
SectionDraw
Creates an instance of aSectionDrawrecord class.- Parameters:
indexCount- the value for theindexCountrecord componentindexType- the value for theindexTyperecord componenthasCustomIndexBuffer- the value for thehasCustomIndexBufferrecord 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. -
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-
hasCustomIndexBuffer
public boolean hasCustomIndexBuffer()Returns the value of thehasCustomIndexBufferrecord component.- Returns:
- the value of the
hasCustomIndexBufferrecord component
-