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
-
-
Constructor Details
-
TasksForChunk
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
chunkPos
public long chunkPos()Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
tasks
-