Class QuadMap<T>

java.lang.Object
com.plotsquared.core.collection.QuadMap<T>

public class QuadMap<T> extends Object
  • Field Details

    • size

      public final int size
    • x

      public final int x
    • z

      public final int z
    • objects

      public HashSet<T> objects
    • one

      public QuadMap<T> one
    • two

      public QuadMap<T> two
    • three

      public QuadMap<T> three
    • four

      public QuadMap<T> four
    • skip

      public QuadMap<T> skip
  • Constructor Details

    • QuadMap

      public QuadMap(int size, int x, int z)
    • QuadMap

      public QuadMap(int size, int x, int z, int min)
  • Method Details

    • count

      public int count()
    • getAll

      public Set<T> getAll()
    • countCurrent

      public int countCurrent()
    • countBelow

      public int countBelow()
    • add

      public void add(T area)
    • getRegion

      public CuboidRegion getRegion(T value)
    • newInstance

      public QuadMap<T> newInstance(int newsize, int x, int z, int min)
    • remove

      public boolean remove(T area)
    • recalculateSkip

      public void recalculateSkip()
    • get

      public Set<T> get(CuboidRegion region)
    • intersects

      public boolean intersects(CuboidRegion other)
    • get

      public T get(int x, int z)