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

public abstract class BaseVectorIterator extends AbstractVectorIterator
  • Constructor Details

  • Method Details

    • getCurrent

      public org.bukkit.util.Vector getCurrent()
      Get the current Vector
      Returns:
      the current vector
    • initial

      public abstract org.bukkit.util.Vector initial()
      Get the initial Vector
      Returns:
      the initial vector
    • getContinue

      public abstract org.bukkit.util.Vector getContinue(org.bukkit.util.Vector current) throws NoSuchElementException
      Get the next Vector
      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 next Vector
      Parameters:
      current - the current vector
      Returns:
      true if there is a next vector
    • reset

      public void reset()
      Description copied from interface: VectorIterator
      Reset the iterator
    • hasNext

      public boolean hasNext()
    • next

      public org.bukkit.util.Vector next()