Interface IPartPosIteratorHandler

All Known Implementing Classes:
PartPosIteratorHandlerDummy, PartPosIteratorHandlerRoundRobin

public interface IPartPosIteratorHandler
Determines the starting position of an iterator of PartPos.
  • Method Details

    • handleIterator

      Iterator<PartPos> handleIterator(Supplier<Iterator<PartPos>> iteratorSupplier, int channel)
      Given an iteraror constructor, determine the starting position of it.
      Parameters:
      iteratorSupplier - A constructor of an iterator of PartPos. Each invocation must produce a new iterator.
      channel - The channel in which the iterator is being handled.
      Returns:
      An iterator, may be ended.
    • clone

      Copy this handler. This should be cheap to call, as this can be called multiple times per tick.
      Returns:
      Create a stateful copy of this handler.