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 bsc$c
named priority
intermediary comp_3142
official a
named runnable
intermediary comp_3143
official b
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPrioritizedTask
(int priority, Runnable runnable) Creates an instance of aPrioritizedTask
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
priority()
Returns the value of thepriority
record component.void
run()
runnable()
Returns the value of therunnable
record component.final String
toString()
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 thepriority
record component.- Returns:
- the value of the
priority
record component
-
runnable
Returns the value of therunnable
record component.- Returns:
- the value of the
runnable
record component
-