Package net.minecraft.util.thread
Record Class TaskQueue.PrioritizedTask
java.lang.Object
java.lang.Record
net.minecraft.util.thread.TaskQueue.PrioritizedTask
- Record Components:
priority-runnable-
- All Implemented Interfaces:
Runnable
public static record TaskQueue.PrioritizedTask(int priority, Runnable runnable)
extends Record
implements Runnable
- Mappings:
Namespace Name named net/minecraft/util/thread/TaskQueue$PrioritizedTaskintermediary net/minecraft/class_3847$class_3907official btw$cnamed priorityintermediary comp_3142official anamed runnableintermediary comp_3143official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrioritizedTask(int priority, Runnable runnable) Creates an instance of aPrioritizedTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.voidrun()runnable()Returns the value of therunnablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
run
public void run() -
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 '=='. -
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
runnable
Returns the value of therunnablerecord component.- Returns:
- the value of the
runnablerecord component
-