Skip to content
VENDUSTRYNEOFORGE 1.21.1 // CORP. WIKI
◆ Credits (Cr)
TERMINAL // ARCHIVE RECORD

Vanilla menu button click

client→server

Packet Sequence: Vanilla menu button click

Vanilla ServerboundContainerButtonClickPacket (AbstractContainerMenu.clickMenuButton). These menus use it instead of custom packets: Vending (buy offer i), Vending manage (0 = collect), Exchange (0 = sell, 100+i = buy), Imprinter (roll), Mod Bench (wallet off/upgrade), Suit (tabs 0–3, pages 10+, switches 20+bit), Reclamation (parcel i).

LANE 01
Client (Container Screen)
LANE 02
Server (AbstractContainerMenu)
LANE 03
Server (BlockEntity / Economy)
⇄ Vanilla menu button click · Fields:
STEP 01 · Client → Server
Click Offer / Action Slot Button

Used by VendingScreen (buy offer i), VendingManageScreen (0=collect income), CircuitWorkbench, Imprinter, Reclamation, Exchange, and SuitScreen.

STEP 02 · Server → Server
Vanilla clickMenuButton(player, id)

Menu routes integer button ID to tryPurchase, craftCircuit, rollImprinter, buyParcel, or tradeExchange.

STEP 03 · Server → Client
Execute Trade & Sync Inventory/Economy

Deducts Credits/scrip via Economy.pay, dispenses items, and sends container + economy_sync updates.

◆

Related Wiki Entries & System Interactions

Vanilla container button click (id)tryPurchase / roll / craft / exchangeContainer slot sync + economy_syncClient (Menu Screen)Server (ContainerMenu)BlockEntity / EconomyClient (Menu Screen)Server (ContainerMenu)BlockEntity / Economy