Class BaseVectorIterator
java.lang.Object
me.hsgamer.hscore.bukkit.block.iterator.AbstractVectorIterator
me.hsgamer.hscore.bukkit.block.iterator.BaseVectorIterator
- All Implemented Interfaces:
Iterator<org.bukkit.util.Vector>,VectorIterator
- Direct Known Subclasses:
LinearVectorIterator,RandomVectorIterator
The base
VectorIterator for BlockBox-
Field Summary
Fields inherited from class me.hsgamer.hscore.bukkit.block.iterator.AbstractVectorIterator
box -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.bukkit.util.VectorgetContinue(org.bukkit.util.Vector current) Get the nextVectororg.bukkit.util.VectorGet the currentVectorabstract booleanhasContinue(org.bukkit.util.Vector current) Check if there is a nextVectorbooleanhasNext()abstract org.bukkit.util.Vectorinitial()Get the initialVectororg.bukkit.util.Vectornext()voidreset()Reset the iteratorMethods 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
-
BaseVectorIterator
Create a newBaseVectorIterator- Parameters:
box- the box
-
-
Method Details
-
getCurrent
public org.bukkit.util.Vector getCurrent()Get the currentVector- Returns:
- the current vector
-
initial
public abstract org.bukkit.util.Vector initial()Get the initialVector- Returns:
- the initial vector
-
getContinue
public abstract org.bukkit.util.Vector getContinue(org.bukkit.util.Vector current) throws NoSuchElementException Get the nextVector- Parameters:
current- the current vector- Returns:
- the next vector
- Throws:
NoSuchElementException- if there is no next vector
-
hasContinue
public abstract boolean hasContinue(org.bukkit.util.Vector current) Check if there is a nextVector- Parameters:
current- the current vector- Returns:
- true if there is a next vector
-
reset
public void reset()Description copied from interface:VectorIteratorReset the iterator -
hasNext
public boolean hasNext() -
next
public org.bukkit.util.Vector next()
-