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
FieldsModifier and TypeFieldDescriptionprivate final SectionOcclusionGraph.GraphEventsThe field for theeventsrecord component.private final SectionOcclusionGraph.GraphStorageThe field for thestoragerecord component. -
Constructor Summary
Constructors -
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
public GraphState(int p_295649_) -
GraphState
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
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 thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-