Record Class ChunkSectionsToRender
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.ChunkSectionsToRender
public record ChunkSectionsToRender(GpuTextureView textureView, EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferSlice[]The field for thechunkSectionInfosrecord component.private final EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> The field for thedrawGroupsPerLayerrecord component.private final intThe field for themaxIndicesRequiredrecord component.private final GpuTextureViewThe field for thetextureViewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkSectionsToRender(GpuTextureView textureView, EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aChunkSectionsToRenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSectionInfosrecord component.EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> Returns the value of thedrawGroupsPerLayerrecord 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. -
drawGroupsPerLayer
private final EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayerThe field for thedrawGroupsPerLayerrecord 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, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aChunkSectionsToRenderrecord class.- Parameters:
textureView- the value for thetextureViewrecord componentdrawGroupsPerLayer- the value for thedrawGroupsPerLayerrecord componentmaxIndicesRequired- the value for themaxIndicesRequiredrecord componentchunkSectionInfos- the value for thechunkSectionInfosrecord component
-
-
Method Details
-
renderGroup
-
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. -
textureView
Returns the value of thetextureViewrecord component.- Returns:
- the value of the
textureViewrecord component
-
drawGroupsPerLayer
public EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer()Returns the value of thedrawGroupsPerLayerrecord component.- Returns:
- the value of the
drawGroupsPerLayerrecord 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
-