Class RandomTypeVectorIterator
java.lang.Object
me.hsgamer.hscore.bukkit.block.iterator.AbstractVectorIterator
me.hsgamer.hscore.bukkit.block.iterator.impl.RandomTypeVectorIterator
- All Implemented Interfaces:
Iterator<org.bukkit.util.Vector>,VectorIterator
The
VectorIterator that combines multiple VectorIterator and randomly choose one-
Field Summary
Fields inherited from class me.hsgamer.hscore.bukkit.block.iterator.AbstractVectorIterator
box -
Constructor Summary
ConstructorsConstructorDescriptionRandomTypeVectorIterator(BlockBox box, Collection<Function<BlockBox, VectorIterator>> functions) Create a newRandomVectorIterator -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface me.hsgamer.hscore.bukkit.block.iterator.VectorIterator
nextLocation
-
Constructor Details
-
RandomTypeVectorIterator
public RandomTypeVectorIterator(BlockBox box, Collection<Function<BlockBox, VectorIterator>> functions) Create a newRandomVectorIterator- Parameters:
box- theBlockBoxfunctions- the functions to createVectorIterator
-
-
Method Details
-
reset
public void reset()Description copied from interface:VectorIteratorReset the iterator -
hasNext
public boolean hasNext() -
next
public org.bukkit.util.Vector next()
-