Record Class SectionOcclusionGraph.GraphState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SectionOcclusionGraph.GraphState
- Enclosing class:
SectionOcclusionGraph
private static record SectionOcclusionGraph.GraphState(SectionOcclusionGraph.GraphStorage storage, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockingQueue<SectionRenderDispatcher.RenderSection> The field for thesectionsToPropagateFromrecord component.private final SectionOcclusionGraph.GraphStorageThe field for thestoragerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGraphState(SectionOcclusionGraph.GraphStorage storage, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom) Creates an instance of aGraphStaterecord class.privateGraphState(ViewArea viewArea) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesectionsToPropagateFromrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
storage
The field for thestoragerecord component. -
sectionsToPropagateFrom
The field for thesectionsToPropagateFromrecord component.
-
-
Constructor Details
-
GraphState
-
GraphState
private GraphState(SectionOcclusionGraph.GraphStorage storage, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom) Creates an instance of aGraphStaterecord class.- Parameters:
storage- the value for thestoragerecord componentsectionsToPropagateFrom- the value for thesectionsToPropagateFromrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
sectionsToPropagateFrom
Returns the value of thesectionsToPropagateFromrecord component.- Returns:
- the value of the
sectionsToPropagateFromrecord component
-