Class SpiralIterator

java.lang.Object
com.hypixel.hytale.math.iterator.SpiralIterator

public class SpiralIterator extends Object
  • Field Details

    • MAX_RADIUS_LONG

      public static final long MAX_RADIUS_LONG
    • MAX_RADIUS

      public static final int MAX_RADIUS
    • setup

      private boolean setup
    • chunkX

      private int chunkX
    • chunkZ

      private int chunkZ
    • maxI

      private long maxI
    • i

      private long i
    • x

      private int x
    • z

      private int z
    • dx

      private int dx
    • dz

      private int dz
  • Constructor Details

    • SpiralIterator

      public SpiralIterator()
    • SpiralIterator

      public SpiralIterator(int chunkX, int chunkZ, int radius)
    • SpiralIterator

      public SpiralIterator(int chunkX, int chunkZ, int radiusFrom, int radiusTo)
  • Method Details

    • init

      public void init(int chunkX, int chunkZ, int radiusTo)
    • init

      public void init(int chunkX, int chunkZ, int radiusFrom, int radiusTo)
    • reset

      public void reset()
    • next

      public long next()
    • hasNext

      public boolean hasNext()
    • isSetup

      public boolean isSetup()
    • getIndex

      public long getIndex()
    • getMaxIndex

      public long getMaxIndex()
    • getChunkX

      public int getChunkX()
    • getChunkZ

      public int getChunkZ()
    • getX

      public int getX()
    • getZ

      public int getZ()
    • getDx

      public int getDx()
    • getDz

      public int getDz()
    • getCurrentRadius

      public int getCurrentRadius()
    • getCompletedRadius

      public int getCompletedRadius()
    • getPosFromIndex

      public static long getPosFromIndex(int index)