Class WindowIdAllocator

java.lang.Object
me.agent.vgui.core.internal.WindowIdAllocator

public final class WindowIdAllocator extends Object
Allocates container window ids per player. Vanilla servers cycle ids 1..99, so we cycle 101..119 to never collide with a window a backend server opens.
  • Constructor Details

    • WindowIdAllocator

      public WindowIdAllocator()
  • Method Details

    • nextId

      public int nextId(UUID uuid)
    • forget

      public void forget(UUID uuid)
    • clear

      public void clear()