Record Class SectionUpdateRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.level.SectionUpdateRenderState
public record SectionUpdateRenderState(long sectionNode, boolean playerChanged, RenderSectionRegion region, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AddSectionGeometryEvent.AdditionalSectionRenderer> The field for theadditionalRenderersrecord component.private final booleanThe field for theplayerChangedrecord component.private final RenderSectionRegionThe field for theregionrecord component.private final longThe field for thesectionNoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSectionUpdateRenderState(long sectionNode, boolean playerChanged, RenderSectionRegion region) Deprecated.SectionUpdateRenderState(long sectionNode, boolean playerChanged, RenderSectionRegion region, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) Creates an instance of aSectionUpdateRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalRenderersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theplayerChangedrecord component.region()Returns the value of theregionrecord component.longReturns the value of thesectionNoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sectionNode
private final long sectionNodeThe field for thesectionNoderecord component. -
playerChanged
private final boolean playerChangedThe field for theplayerChangedrecord component. -
region
The field for theregionrecord component. -
additionalRenderers
The field for theadditionalRenderersrecord component.
-
-
Constructor Details
-
SectionUpdateRenderState
@Deprecated public SectionUpdateRenderState(long sectionNode, boolean playerChanged, RenderSectionRegion region) Deprecated. -
SectionUpdateRenderState
public SectionUpdateRenderState(long sectionNode, boolean playerChanged, RenderSectionRegion region, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) Creates an instance of aSectionUpdateRenderStaterecord class.- Parameters:
sectionNode- the value for thesectionNoderecord componentplayerChanged- the value for theplayerChangedrecord componentregion- the value for theregionrecord componentadditionalRenderers- the value for theadditionalRenderersrecord component
-
-
Method Details
-
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. -
sectionNode
public long sectionNode()Returns the value of thesectionNoderecord component.- Returns:
- the value of the
sectionNoderecord component
-
playerChanged
public boolean playerChanged()Returns the value of theplayerChangedrecord component.- Returns:
- the value of the
playerChangedrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
additionalRenderers
Returns the value of theadditionalRenderersrecord component.- Returns:
- the value of the
additionalRenderersrecord component
-
SectionUpdateRenderState(long, boolean, RenderSectionRegion, java.util.List)instead