Record Class ChunkSectionsToRender
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.ChunkSectionsToRender
public record ChunkSectionsToRender(EnumMap<ChunkSectionLayer,List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumMap
<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> The field for thedrawsPerLayer
record component.private final GpuBufferSlice[]
The field for thedynamicTransforms
record component.private final int
The field for themaxIndicesRequired
record component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkSectionsToRender
(EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms) Creates an instance of aChunkSectionsToRender
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedrawsPerLayer
record component.Returns the value of thedynamicTransforms
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxIndicesRequired
record component.void
renderGroup
(ChunkSectionLayerGroup pGroup) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
drawsPerLayer
The field for thedrawsPerLayer
record component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequired
record component. -
dynamicTransforms
The field for thedynamicTransforms
record component.
-
-
Constructor Details
-
ChunkSectionsToRender
public ChunkSectionsToRender(EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms) Creates an instance of aChunkSectionsToRender
record class.- Parameters:
drawsPerLayer
- the value for thedrawsPerLayer
record componentmaxIndicesRequired
- the value for themaxIndicesRequired
record componentdynamicTransforms
- the value for thedynamicTransforms
record component
-
-
Method Details
-
renderGroup
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
drawsPerLayer
Returns the value of thedrawsPerLayer
record component.- Returns:
- the value of the
drawsPerLayer
record component
-
maxIndicesRequired
public int maxIndicesRequired()Returns the value of themaxIndicesRequired
record component.- Returns:
- the value of the
maxIndicesRequired
record component
-
dynamicTransforms
Returns the value of thedynamicTransforms
record component.- Returns:
- the value of the
dynamicTransforms
record component
-