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$PrioritizedTask- intermediary - net/minecraft/class_3847$class_3907- official - brf$c- named - priority- intermediary - comp_3142- official - a- named - runnable- intermediary - comp_3143- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPrioritizedTask(int priority, Runnable runnable) Creates an instance of aPrioritizedTaskrecord class.
- 
Method SummaryModifier 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- 
runpublic void run()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
prioritypublic int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the priorityrecord component
 
- 
runnableReturns the value of therunnablerecord component.- Returns:
- the value of the runnablerecord component
 
 
-