Class ThreadDispatcher.Partition

java.lang.Object
net.minestom.server.thread.ThreadDispatcher.Partition
Enclosing class:
ThreadDispatcher<P>

public static final class ThreadDispatcher.Partition extends Object
A data structure which may contain Tickables, and is assigned a single TickThread.
  • Method Details

    • thread

      @Internal @NotNull public @NotNull TickThread thread()
      The TickThread used by this partition.

      This method is marked internal to reflect TickThreads own internal status.

      Returns:
      the TickThread used by this partition
    • elements

      @NotNull public @NotNull List<Tickable> elements()
      The Tickables assigned to this partition.
      Returns:
      the tickables assigned to this partition