Package net.minecraft.client.render
Record Class SectionRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.render.SectionRenderState
- Record Components:
drawsPerLayer-maxIndicesRequired-dynamicTransforms-
@Environment(CLIENT)
public record SectionRenderState(EnumMap<BlockRenderLayer,List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayer, int maxIndicesRequired, GpuBufferSlice[] dynamicTransforms)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/SectionRenderStateintermediary net/minecraft/class_11532official hktnamed drawsPerLayerintermediary comp_4402official anamed maxIndicesRequiredintermediary comp_4403official bnamed dynamicTransformsintermediary comp_4404official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> The field for thedrawsPerLayerrecord component.private final GpuBufferSlice[]The field for thedynamicTransformsrecord component.private final intThe field for themaxIndicesRequiredrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderState(EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> enumMap, int int2, GpuBufferSlice[] gpuBufferSlice) -
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.voidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
drawsPerLayer
private final EnumMap<BlockRenderLayer,List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayerThe field for thedrawsPerLayerrecord component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequiredrecord component. -
dynamicTransforms
The field for thedynamicTransformsrecord component.
-
-
Constructor Details
-
SectionRenderState
public SectionRenderState(EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> enumMap, int int2, GpuBufferSlice[] gpuBufferSlice)
-
-
Method Details
-
renderSection
- Mappings:
Namespace Name Mixin selector named renderSectionLnet/minecraft/client/render/SectionRenderState;renderSection(Lnet/minecraft/client/render/BlockRenderLayerGroup;)Vintermediary method_72170Lnet/minecraft/class_11532;method_72170(Lnet/minecraft/class_11531;)Vofficial aLhkt;a(Lhks;)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 '=='. -
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
-