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, SectionOcclusionGraph.GraphEvents events)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SectionOcclusionGraph.GraphEventsThe field for theeventsrecord component.private final SectionOcclusionGraph.GraphStorageThe field for thestoragerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates an instance of aGraphStaterecord class.privateGraphState(ViewArea viewArea) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.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. -
events
The field for theeventsrecord component.
-
-
Constructor Details
-
GraphState
-
GraphState
private GraphState(SectionOcclusionGraph.GraphStorage storage, SectionOcclusionGraph.GraphEvents events) Creates an instance of aGraphStaterecord class.- Parameters:
storage- the value for thestoragerecord componentevents- the value for theeventsrecord 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
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-