Package net.minecraft.server.level
Record Class ChunkTaskPriorityQueue.TasksForChunk
java.lang.Object
java.lang.Record
net.minecraft.server.level.ChunkTaskPriorityQueue.TasksForChunk
- Enclosing class:
ChunkTaskPriorityQueue
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTasksForChunk
(long chunkPos, List<Runnable> tasks) Creates an instance of aTasksForChunk
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
chunkPos()
Returns the value of thechunkPos
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.tasks()
Returns the value of thetasks
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
chunkPos
private final long chunkPosThe field for thechunkPos
record component. -
tasks
The field for thetasks
record component.
-
-
Constructor Details
-
TasksForChunk
Creates an instance of aTasksForChunk
record class.- Parameters:
chunkPos
- the value for thechunkPos
record componenttasks
- the value for thetasks
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
chunkPos
public long chunkPos()Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
tasks
Returns the value of thetasks
record component.- Returns:
- the value of the
tasks
record component
-