Package net.glowstone.util
Class TaxicabBlockIterator
java.lang.Object
net.glowstone.util.TaxicabBlockIterator
- All Implemented Interfaces:
Iterator<org.bukkit.block.Block>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
org.bukkit.block.Block
next()
void
remove()
void
setMaxBlocks
(int maxBlocks) void
setMaxDistance
(int maxDistance) void
setPredicate
(Predicate<org.bukkit.block.Block> predicate) 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
-
Constructor Details
-
TaxicabBlockIterator
public TaxicabBlockIterator(org.bukkit.block.Block origin) Creates an instance.- Parameters:
origin
- the origin to start iterating around
-
-
Method Details
-
setMaxDistance
public void setMaxDistance(int maxDistance) -
setMaxBlocks
public void setMaxBlocks(int maxBlocks) -
setPredicate
-
hasNext
public boolean hasNext() -
next
public org.bukkit.block.Block next() -
remove
public void remove()
-