Class RandomTypePositionIterator
java.lang.Object
me.hsgamer.hscore.minecraft.block.iterator.AbstractPositionIterator
me.hsgamer.hscore.minecraft.block.impl.iterator.RandomTypePositionIterator
- All Implemented Interfaces:
Iterator<Position>
,PositionIterator
The
PositionIterator
that combines multiple PositionIterator
and randomly choose one-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.block.iterator.AbstractPositionIterator
box
-
Constructor Summary
ConstructorDescriptionRandomTypePositionIterator
(BlockBox box, Collection<Function<BlockBox, PositionIterator>> functions) Create a newRandomTypePositionIterator
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RandomTypePositionIterator
public RandomTypePositionIterator(BlockBox box, Collection<Function<BlockBox, PositionIterator>> functions) Create a newRandomTypePositionIterator
- Parameters:
box
- theBlockBox
functions
- the functions to createPositionIterator
-
-
Method Details
-
reset
public void reset()Description copied from interface:PositionIterator
Reset the iterator -
hasNext
public boolean hasNext() -
next
-