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 thedrawsPerLayerrecord component.private final GpuBufferSlice[]The field for thedynamicTransformsrecord component.private final intThe field for themaxIndicesRequiredrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkSectionsToRender(EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms) Creates an instance of aChunkSectionsToRenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedrawsPerLayerrecord component.Returns the value of thedynamicTransformsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxIndicesRequiredrecord component.voidrenderGroup(ChunkSectionLayerGroup pGroup) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
drawsPerLayer
The field for thedrawsPerLayerrecord component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequiredrecord component. -
dynamicTransforms
The field for thedynamicTransformsrecord component.
-
-
Constructor Details
-
ChunkSectionsToRender
public ChunkSectionsToRender(EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms) Creates an instance of aChunkSectionsToRenderrecord class.- Parameters:
drawsPerLayer- the value for thedrawsPerLayerrecord componentmaxIndicesRequired- the value for themaxIndicesRequiredrecord componentdynamicTransforms- the value for thedynamicTransformsrecord 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 thedrawsPerLayerrecord component.- Returns:
- the value of the
drawsPerLayerrecord component
-
maxIndicesRequired
public int maxIndicesRequired()Returns the value of themaxIndicesRequiredrecord component.- Returns:
- the value of the
maxIndicesRequiredrecord component
-
dynamicTransforms
Returns the value of thedynamicTransformsrecord component.- Returns:
- the value of the
dynamicTransformsrecord component
-