Class GroupAssigningThreadFactory

java.lang.Object
net.minecraft.util.thread.GroupAssigningThreadFactory
All Implemented Interfaces:
ThreadFactory

public class GroupAssigningThreadFactory extends Object implements ThreadFactory
A custom thread factory that assigns each created thread to the group of the system security manager or the factory-creating thread (when the security manager does not exist). Otherwise, it behaves much like the thread creation logic in Util.createIoWorker().
Mappings:
Namespace Name
official aza
intermediary net/minecraft/class_6014
named net/minecraft/util/thread/GroupAssigningThreadFactory
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Laza;a:Lorg/slf4j/Logger;
      intermediary field_29936 Lnet/minecraft/class_6014;field_29936:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/util/thread/GroupAssigningThreadFactory;LOGGER:Lorg/slf4j/Logger;
    • group

      private final ThreadGroup group
      Mappings:
      Namespace Name Mixin selector
      official b Laza;b:Ljava/lang/ThreadGroup;
      intermediary field_29937 Lnet/minecraft/class_6014;field_29937:Ljava/lang/ThreadGroup;
      named group Lnet/minecraft/util/thread/GroupAssigningThreadFactory;group:Ljava/lang/ThreadGroup;
    • nextIndex

      private final AtomicInteger nextIndex
      Mappings:
      Namespace Name Mixin selector
      official c Laza;c:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_29938 Lnet/minecraft/class_6014;field_29938:Ljava/util/concurrent/atomic/AtomicInteger;
      named nextIndex Lnet/minecraft/util/thread/GroupAssigningThreadFactory;nextIndex:Ljava/util/concurrent/atomic/AtomicInteger;
    • prefix

      private final String prefix
      Mappings:
      Namespace Name Mixin selector
      official d Laza;d:Ljava/lang/String;
      intermediary field_29939 Lnet/minecraft/class_6014;field_29939:Ljava/lang/String;
      named prefix Lnet/minecraft/util/thread/GroupAssigningThreadFactory;prefix:Ljava/lang/String;
  • Constructor Details

    • GroupAssigningThreadFactory

      public GroupAssigningThreadFactory(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laza;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6014;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/util/thread/GroupAssigningThreadFactory;<init>(Ljava/lang/String;)V
  • Method Details

    • newThread

      public Thread newThread(Runnable r)
      Specified by:
      newThread in interface ThreadFactory
      Mappings:
      Namespace Name Mixin selector
      official newThread Laza;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
      intermediary newThread Lnet/minecraft/class_6014;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
      named newThread Lnet/minecraft/util/thread/GroupAssigningThreadFactory;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;