Package net.minecraft.util.thread
Record Class NameableExecutor
java.lang.Object
java.lang.Record
net.minecraft.util.thread.NameableExecutor
- Record Components:
service-
- All Implemented Interfaces:
Executor
- Mappings:
Namespace Name named net/minecraft/util/thread/NameableExecutorintermediary net/minecraft/class_10207official afnamed serviceintermediary comp_3205official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorServiceThe field for theservicerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidfinal inthashCode()Returns a hash code value for this object.service()Returns the value of theservicerecord component.voidfinal StringtoString()Returns a string representation of this record class.private static RunnablewrapForTracy(Runnable runnable)
-
Field Details
-
service
The field for theservicerecord component.
-
-
Constructor Details
-
NameableExecutor
-
-
Method Details
-
named
- Mappings:
Namespace Name Mixin selector named namedLnet/minecraft/util/thread/NameableExecutor;named(Ljava/lang/String;)Ljava/util/concurrent/Executor;intermediary method_64116Lnet/minecraft/class_10207;method_64116(Ljava/lang/String;)Ljava/util/concurrent/Executor;official aLaf;a(Ljava/lang/String;)Ljava/util/concurrent/Executor;
-
execute
- Specified by:
executein interfaceExecutor- Mappings:
Namespace Name Mixin selector named executeLnet/minecraft/util/thread/NameableExecutor;execute(Ljava/lang/Runnable;)Vintermediary executeLnet/minecraft/class_10207;execute(Ljava/lang/Runnable;)Vofficial executeLaf;execute(Ljava/lang/Runnable;)V
-
shutdown
- Mappings:
Namespace Name Mixin selector named shutdownLnet/minecraft/util/thread/NameableExecutor;shutdown(JLjava/util/concurrent/TimeUnit;)Vintermediary method_64114Lnet/minecraft/class_10207;method_64114(JLjava/util/concurrent/TimeUnit;)Vofficial aLaf;a(JLjava/util/concurrent/TimeUnit;)V
-
wrapForTracy
- Mappings:
Namespace Name Mixin selector named wrapForTracyLnet/minecraft/util/thread/NameableExecutor;wrapForTracy(Ljava/lang/Runnable;)Ljava/lang/Runnable;intermediary method_64115Lnet/minecraft/class_10207;method_64115(Ljava/lang/Runnable;)Ljava/lang/Runnable;official aLaf;a(Ljava/lang/Runnable;)Ljava/lang/Runnable;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-