Class MenuStateSnapshot
java.lang.Object
com.render.api.MenuStateSnapshot
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 Summary
Modifier and TypeMethodDescriptionstatic MenuStateSnapshotcapture(MenuHostContext context) Captures copied item values without retaining the host screen, handler or slots.booleanmatches(MenuHostContext context) Compares sync id, packet revision, plain title, cursor and every slot's complete item value.
-
Method Details
-
capture
Captures copied item values without retaining the host screen, handler or slots. -
matches
Compares sync id, packet revision, plain title, cursor and every slot's complete item value.
-