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 aTasksForChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongchunkPos()Returns the value of thechunkPosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
chunkPos
private final long chunkPosThe field for thechunkPosrecord component. -
tasks
The field for thetasksrecord component.
-
-
Constructor Details
-
TasksForChunk
Creates an instance of aTasksForChunkrecord class.- Parameters:
chunkPos- the value for thechunkPosrecord componenttasks- the value for thetasksrecord 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 thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-