Interface IPartPosIteratorHandler
- All Known Implementing Classes:
PartPosIteratorHandlerDummy
,PartPosIteratorHandlerRoundRobin
public interface IPartPosIteratorHandler
Determines the starting position of an iterator of
PartPos
.-
Method Summary
Modifier and TypeMethodDescriptionclone()
Copy this handler.handleIterator
(Supplier<Iterator<PartPos>> iteratorSupplier, int channel) Given an iteraror constructor, determine the starting position of it.
-
Method Details
-
handleIterator
Given an iteraror constructor, determine the starting position of it.- Parameters:
iteratorSupplier
- A constructor of an iterator ofPartPos
. Each invocation must produce a new iterator.channel
- The channel in which the iterator is being handled.- Returns:
- An iterator, may be ended.
-
clone
IPartPosIteratorHandler 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.
-