Class FoodProof
java.lang.Object
privbot.mechanics.FoodProof
A bounded observation of one accepted food action, using a pre-send count and later detached inventory snapshots.
No client reads or dispatch. The caller must ensure another action cannot consume, deposit or drop the same item
during the window; a count drop proves the item left, not by itself which action caused it. Single-owner.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FoodProofbegin(int sentTick, int itemId, ItemContainerSnapshot before) A readable pre-send inventory containing this item is required; null means no baseline can be established.observe(int tick, ItemContainerSnapshot inventory) A later observed drop proves the count changed.
-
Method Details
-
begin
A readable pre-send inventory containing this item is required; null means no baseline can be established. -
observe
A later observed drop proves the count changed. Timeout is not a refusal or proof the food was not eaten.
-