Package net.minecraft.client.renderer
Record Class SectionOcclusionGraph.GraphState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SectionOcclusionGraph.GraphState
- Enclosing class:
SectionOcclusionGraph
static record SectionOcclusionGraph.GraphState(SectionOcclusionGraph.GraphStorage storage, SectionOcclusionGraph.GraphEvents events)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SectionOcclusionGraph.GraphEvents
The field for theevents
record component.private final SectionOcclusionGraph.GraphStorage
The field for thestorage
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.events()
Returns the value of theevents
record component.final int
hashCode()
Returns a hash code value for this object.storage()
Returns the value of thestorage
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
storage
The field for thestorage
record component. -
events
The field for theevents
record component.
-
-
Constructor Details
-
GraphState
public GraphState(int p_298520_) -
GraphState
GraphState(SectionOcclusionGraph.GraphStorage storage, SectionOcclusionGraph.GraphEvents events) Creates an instance of aGraphState
record class.- Parameters:
storage
- the value for thestorage
record componentevents
- the value for theevents
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
storage
Returns the value of thestorage
record component.- Returns:
- the value of the
storage
record component
-
events
Returns the value of theevents
record component.- Returns:
- the value of the
events
record component
-