Class SlotIterator

java.lang.Object
studio.mevera.lotus.api.slot.SlotIterator

public final class SlotIterator extends Object
Stateful iterator that walks a menu grid in a given Direction, optionally bounded by an end slot. Wraps within capacity bounds — callers must check hasNext() before each step.
  • Method Details

    • of

      @NotNull public static @NotNull SlotIterator of(@NotNull @NotNull Capacity capacity, @NotNull @NotNull Slot start, @NotNull @NotNull Direction direction)
    • bounded

      @NotNull public static @NotNull SlotIterator bounded(@NotNull @NotNull Capacity capacity, @NotNull @NotNull Slot start, @NotNull @NotNull Slot end, @NotNull @NotNull Direction direction)
    • hasNext

      public boolean hasNext()
    • next

      @NotNull public @NotNull Slot next()