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/SectionRenderState
intermediary net/minecraft/class_11532
official hbb
named drawsPerLayer
intermediary comp_4402
official a
named maxIndicesRequired
intermediary comp_4403
official b
named dynamicTransforms
intermediary comp_4404
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumMap
<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> The field for thedrawsPerLayer
record component.private final GpuBufferSlice[]
The field for thedynamicTransforms
record component.private final int
The field for themaxIndicesRequired
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderState
(EnumMap<BlockRenderLayer, List<RenderPass.RenderObject<GpuBufferSlice[]>>> enumMap, int int2, GpuBufferSlice[] gpuBufferSlice) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedrawsPerLayer
record component.Returns the value of thedynamicTransforms
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxIndicesRequired
record component.void
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
drawsPerLayer
private final EnumMap<BlockRenderLayer,List<RenderPass.RenderObject<GpuBufferSlice[]>>> drawsPerLayerThe field for thedrawsPerLayer
record component. -
maxIndicesRequired
private final int maxIndicesRequiredThe field for themaxIndicesRequired
record component. -
dynamicTransforms
The field for thedynamicTransforms
record 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 renderSection
Lnet/minecraft/client/render/SectionRenderState;renderSection(Lnet/minecraft/client/render/BlockRenderLayerGroup;)V
intermediary method_72170
Lnet/minecraft/class_11532;method_72170(Lnet/minecraft/class_11531;)V
official a
Lhbb;a(Lhba;)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 thedrawsPerLayer
record component.- Returns:
- the value of the
drawsPerLayer
record component
-
maxIndicesRequired
public int maxIndicesRequired()Returns the value of themaxIndicesRequired
record component.- Returns:
- the value of the
maxIndicesRequired
record component
-
dynamicTransforms
Returns the value of thedynamicTransforms
record component.- Returns:
- the value of the
dynamicTransforms
record component
-