Package net.minecraft.client.render
Record Class SectionRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.render.SectionRenderState
- Record Components:
textureView-drawsPerLayer-maxIndicesRequired-chunkSectionInfos-
@Environment(CLIENT)
public record SectionRenderState(GpuTextureView textureView, EnumMap<BlockRenderLayer,List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/SectionRenderStateintermediary net/minecraft/class_11532official hpgnamed textureViewintermediary comp_5192official anamed drawsPerLayerintermediary comp_4402official bnamed maxIndicesRequiredintermediary comp_4403official cnamed chunkSectionInfosintermediary comp_5193official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferSlice[]The field for thechunkSectionInfosrecord component.private final EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> The field for thedrawsPerLayerrecord component.private final intThe field for themaxIndicesRequiredrecord component.private final GpuTextureViewThe field for thetextureViewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderState(GpuTextureView textureView, EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aSectionRenderStaterecord 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.voidrenderSection(BlockRenderLayerGroup 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
private final EnumMap<BlockRenderLayer,List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayerThe field for thedrawsPerLayerrecord component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequiredrecord component. -
chunkSectionInfos
The field for thechunkSectionInfosrecord component.
-
-
Constructor Details
-
SectionRenderState
public SectionRenderState(GpuTextureView textureView, EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] chunkSectionInfos) Creates an instance of aSectionRenderStaterecord 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
-
renderSection
- Mappings:
Namespace Name Mixin selector named renderSectionLnet/minecraft/client/render/SectionRenderState;renderSection(Lnet/minecraft/client/render/BlockRenderLayerGroup;Lnet/minecraft/client/gl/GpuSampler;)Vintermediary method_72170Lnet/minecraft/class_11532;method_72170(Lnet/minecraft/class_11531;Lnet/minecraft/class_12137;)Vofficial aLhpg;a(Lhpf;Lfxx;)V
-
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
-