Class PartPosIteratorHandlerDummy
java.lang.Object
org.cyclops.integrateddynamics.core.network.PartPosIteratorHandlerDummy
- All Implemented Interfaces:
IPartPosIteratorHandler
An
IPartPosIteratorHandler
that returns the given iterator unchanged.-
Field Summary
-
Constructor Summary
-
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.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PartPosIteratorHandlerDummy
public PartPosIteratorHandlerDummy()
-
-
Method Details
-
handleIterator
Description copied from interface:IPartPosIteratorHandler
Given an iteraror constructor, determine the starting position of it.- Specified by:
handleIterator
in interfaceIPartPosIteratorHandler
- 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
Description copied from interface:IPartPosIteratorHandler
Copy this handler. This should be cheap to call, as this can be called multiple times per tick.- Specified by:
clone
in interfaceIPartPosIteratorHandler
- Overrides:
clone
in classObject
- Returns:
- Create a stateful copy of this handler.
-