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 Details

    • textureView

      private final GpuTextureView textureView
      The field for the textureView record component.
    • drawGroupsPerLayer

      private final EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer
      The field for the drawGroupsPerLayer record component.
    • maxIndicesRequired

      private final int maxIndicesRequired
      The field for the maxIndicesRequired record component.
    • chunkSectionInfos

      private final GpuBufferSlice[] chunkSectionInfos
      The field for the chunkSectionInfos record 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 a ChunkSectionsToRender record class.
      Parameters:
      textureView - the value for the textureView record component
      drawGroupsPerLayer - the value for the drawGroupsPerLayer record component
      maxIndicesRequired - the value for the maxIndicesRequired record component
      chunkSectionInfos - the value for the chunkSectionInfos record component
  • Method Details

    • renderGroup

      public void renderGroup(ChunkSectionLayerGroup group, GpuSampler sampler)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • textureView

      public GpuTextureView textureView()
      Returns the value of the textureView record component.
      Returns:
      the value of the textureView record component
    • drawGroupsPerLayer

      public EnumMap<ChunkSectionLayer, it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<RenderPass.Draw<GpuBufferSlice[]>>>> drawGroupsPerLayer()
      Returns the value of the drawGroupsPerLayer record component.
      Returns:
      the value of the drawGroupsPerLayer record component
    • maxIndicesRequired

      public int maxIndicesRequired()
      Returns the value of the maxIndicesRequired record component.
      Returns:
      the value of the maxIndicesRequired record component
    • chunkSectionInfos

      public GpuBufferSlice[] chunkSectionInfos()
      Returns the value of the chunkSectionInfos record component.
      Returns:
      the value of the chunkSectionInfos record component