Class Int3Stack

java.lang.Object
com.hypixel.hytale.builtin.buildertools.world.Int3Stack

public final class Int3Stack extends Object
A last-in-first-out stack of int triples, held as three ints per entry in one array.
  • Constructor Details

    • Int3Stack

      public Int3Stack()
    • Int3Stack

      public Int3Stack(int expectedSize)
  • Method Details

    • push

      public void push(int x, int y, int z)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • pop

      public void pop(@Nonnull org.joml.Vector3i out)
      Removes the most recently pushed position and writes it into out.
      Throws:
      NoSuchElementException - if the stack is empty