Record Class ChunkSectionsToRender
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.ChunkSectionsToRender
public record ChunkSectionsToRender(GpuTextureView textureView, EnumMap<ChunkSectionLayer,List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferSlice[]The field for thechunkSectionInfosrecord component.private final EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> The field for thedrawsPerLayerrecord component.private final intThe field for themaxIndicesRequiredrecord component.private final GpuTextureViewThe field for thetextureViewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkSectionsToRender(GpuTextureView textureView, EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aChunkSectionsToRenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSectionInfosrecord component.Returns the value of thedrawsPerLayerrecord 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 group, GpuSampler sampler) Returns the value of thetextureViewrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
textureView
The field for thetextureViewrecord component. -
drawsPerLayer
The field for thedrawsPerLayerrecord component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequiredrecord component. -
chunkSectionInfos
The field for thechunkSectionInfosrecord component.
-
-
Constructor Details
-
ChunkSectionsToRender
public ChunkSectionsToRender(GpuTextureView textureView, EnumMap<ChunkSectionLayer, List<RenderPass.Draw<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aChunkSectionsToRenderrecord class.- Parameters:
textureView- the value for thetextureViewrecord componentdrawsPerLayer- the value for thedrawsPerLayerrecord componentmaxIndicesRequired- the value for themaxIndicesRequiredrecord componentchunkSectionInfos- the value for thechunkSectionInfosrecord 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 '=='. -
textureView
Returns the value of thetextureViewrecord component.- Returns:
- the value of the
textureViewrecord component
-
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
-
chunkSectionInfos
Returns the value of thechunkSectionInfosrecord component.- Returns:
- the value of the
chunkSectionInfosrecord component
-