Class SidedThreadGroup

java.lang.Object
java.lang.ThreadGroup
net.minecraftforge.fml.util.thread.SidedThreadGroup
All Implemented Interfaces:
Thread.UncaughtExceptionHandler, ThreadFactory

public final class SidedThreadGroup extends ThreadGroup implements ThreadFactory
A thread group and factory combination which belongs to a LogicalSide.
  • Field Details

  • Constructor Details

    • SidedThreadGroup

      SidedThreadGroup(LogicalSide side)
  • Method Details

    • getSide

      public LogicalSide getSide()
      Gets the side this sided thread group belongs to.
      Returns:
      the side
    • newThread

      public Thread newThread(@NotNull @NotNull Runnable runnable)
      Specified by:
      newThread in interface ThreadFactory