Package net.minecraft.client.renderer
Record Class SectionOcclusionGraph.GraphEvents
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SectionOcclusionGraph.GraphEvents
- Enclosing class:
SectionOcclusionGraph
static record SectionOcclusionGraph.GraphEvents(it.unimi.dsi.fastutil.longs.LongSet chunksWhichReceivedNeighbors, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSet
The field for thechunksWhichReceivedNeighbors
record component.private final BlockingQueue
<SectionRenderDispatcher.RenderSection> The field for thesectionsToPropagateFrom
record component. -
Constructor Summary
ConstructorDescriptionGraphEvents
(it.unimi.dsi.fastutil.longs.LongSet chunksWhichReceivedNeighbors, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom) Creates an instance of aGraphEvents
record class. -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.longs.LongSet
Returns the value of thechunksWhichReceivedNeighbors
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesectionsToPropagateFrom
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
chunksWhichReceivedNeighbors
private final it.unimi.dsi.fastutil.longs.LongSet chunksWhichReceivedNeighborsThe field for thechunksWhichReceivedNeighbors
record component. -
sectionsToPropagateFrom
The field for thesectionsToPropagateFrom
record component.
-
-
Constructor Details
-
GraphEvents
public GraphEvents() -
GraphEvents
GraphEvents(it.unimi.dsi.fastutil.longs.LongSet chunksWhichReceivedNeighbors, BlockingQueue<SectionRenderDispatcher.RenderSection> sectionsToPropagateFrom) Creates an instance of aGraphEvents
record class.- Parameters:
chunksWhichReceivedNeighbors
- the value for thechunksWhichReceivedNeighbors
record componentsectionsToPropagateFrom
- the value for thesectionsToPropagateFrom
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)
. -
chunksWhichReceivedNeighbors
public it.unimi.dsi.fastutil.longs.LongSet chunksWhichReceivedNeighbors()Returns the value of thechunksWhichReceivedNeighbors
record component.- Returns:
- the value of the
chunksWhichReceivedNeighbors
record component
-
sectionsToPropagateFrom
Returns the value of thesectionsToPropagateFrom
record component.- Returns:
- the value of the
sectionsToPropagateFrom
record component
-