Record Class LevelRenderer.ChunkDrawGroup
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.LevelRenderer.ChunkDrawGroup
- Enclosing class:
LevelRenderer
private static record LevelRenderer.ChunkDrawGroup(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, List<DynamicGpuData.IndexedDraw> draws)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DynamicGpuData.IndexedDraw> The field for thedrawsrecord component.private final @Nullable GpuBufferSliceThe field for theindexBufferrecord component.The field for theindexTyperecord component.private final GpuBufferSliceThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateChunkDrawGroup(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, List<DynamicGpuData.IndexedDraw> draws) Creates an instance of aChunkDrawGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptiondraws()Returns the value of thedrawsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexBufferrecord component.Returns the value of theindexTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexBufferrecord component.
-
Field Details
-
vertexBuffer
The field for thevertexBufferrecord component. -
indexBuffer
The field for theindexBufferrecord component. -
indexType
-
draws
The field for thedrawsrecord component.
-
-
Constructor Details
-
ChunkDrawGroup
private ChunkDrawGroup(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, List<DynamicGpuData.IndexedDraw> draws) Creates an instance of aChunkDrawGrouprecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentindexBuffer- the value for theindexBufferrecord componentindexType- the value for theindexTyperecord componentdraws- the value for thedrawsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
indexBuffer
Returns the value of theindexBufferrecord component.- Returns:
- the value of the
indexBufferrecord component
-
indexType
-
draws
Returns the value of thedrawsrecord component.- Returns:
- the value of the
drawsrecord component
-