Class TaxicabBlockIterator

java.lang.Object
net.glowstone.util.TaxicabBlockIterator
All Implemented Interfaces:
Iterator<org.bukkit.block.Block>

public class TaxicabBlockIterator extends Object implements Iterator<org.bukkit.block.Block>
  • 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

      public void setPredicate(Predicate<org.bukkit.block.Block> predicate)
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.bukkit.block.Block>
    • next

      public org.bukkit.block.Block next()
      Specified by:
      next in interface Iterator<org.bukkit.block.Block>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<org.bukkit.block.Block>