Class MenuStateSnapshot

java.lang.Object
com.render.api.MenuStateSnapshot

public final class MenuStateSnapshot extends Object
Retained value snapshot of host menu state for sync-safe change detection without serializing item components. Capture on the client thread and retain until the next meaningful update. Matching checks local mutations as well as packet revisions; slot/cursor stack values are copied, so later in-place mutations cannot change this snapshot.
  • Method Details

    • capture

      public static MenuStateSnapshot capture(MenuHostContext context)
      Captures copied item values without retaining the host screen, handler or slots.
    • matches

      public boolean matches(MenuHostContext context)
      Compares sync id, packet revision, plain title, cursor and every slot's complete item value.