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

Networking & Custom Packet Sequences

Select any of the 10 custom packets (vendustry:*) or the vanilla container menu button pattern below to step through its Client ↔ Server execution lanes and inspect its payload fields and action enums:

SELECT NETWORK PAYLOAD (10 CUSTOM PACKETS + VANILLA CONTAINER BUTTON):
server→clientvendustry:economy_syncsrc/main/java/com/vendustry/network/EconomySyncPayload.java

Packet Sequence: economy_sync

Updates the client copy of your wallet, bank and card after any change, and on login.

LANE 01
Server (Economy / BankData)
LANE 02
Network (NeoForge Payload)
LANE 03
Client (ClientEconomy Mirror)
⇄ economy_sync · Fields: walletTier, wallet, cap, bank, card
STEP 01 · Server → Network
Serialize EconomySyncPayload

Reads player WalletData attachment, BankData account balance, and linked card status.

STEP 02 · Network → Client
Send vendustry:economy_sync (S→C)

Transmits walletTier (0–3), wallet balance, wallet cap (5k/50k/500k), bank balance, and card flag.

STEP 03 · Client → Client
Update ClientEconomy Mirror

Refreshes ATM screen, survival Inventory WalletPanel, and shop balance readouts immediately.

Complete Packet Registry Table (11 Entries)

Section titled “Complete Packet Registry Table (11 Entries)”
Packet Name Registry ID Direction Payload Fields Action Enums Java Payload Class
economy_sync vendustry:economy_sync server→client walletTier, wallet, cap, bank, card — EconomySyncPayload.java
parcel_sync vendustry:parcel_sync server→client count — ParcelSyncPayload.java
item_values vendustry:item_values server→client values (map of item → Cr) — ItemValuesPayload.java
market_view vendustry:market_view server→client kind, pos, tag (CompoundTag) ENGINEER = 0, TERMINAL = 1, MANAGER = 2 MarketViewPayload.java
wallet_action vendustry:wallet_action client→server action, amount DEPOSIT_ALL, DEPOSIT_CARRIED, WITHDRAW, SWAP_CARD WalletActionPayload.java
atm_action vendustry:atm_action client→server action, amount, target WALLET_TO_BANK, BANK_TO_WALLET, CASH_TO_BANK, BANK_TO_CASH, TRANSFER, LINK_CARD AtmActionPayload.java
vending_config vendustry:vending_config client→server slot, price, bundle — VendingConfigPayload.java
market_refresh vendustry:market_refresh client→server kind, pos — MarketRefreshPayload.java
market_action vendustry:market_action client→server pos, action, text RECALL, ACCESS_CODE, PAY_COMPANY, COMPANY_*, MANAGER_* MarketActionPayload.java
suit_action vendustry:suit_action client→server action OPEN, TOGGLE_VACUUM, LASER_FIRE, LASER_HOLD SuitActionPayload.java
Vanilla menu button click (vanilla) client→server containerId, buttonId Offer index / 0 (Collect) / recipe index AbstractContainerMenu#clickMenuButton

Static Pele / Mermaid Sequence Fallbacks (All 11 Patterns)

Section titled “Static Pele / Mermaid Sequence Fallbacks (All 11 Patterns)”

1. Login & State Sync (economy_sync, parcel_sync, item_values)

Section titled “1. Login & State Sync (economy_sync, parcel_sync, item_values)”
economy_sync(walletTier, wallet, cap, bank, card)parcel_sync(count)item_values(map of itemId -> Cr)Refresh HUD, WalletPanel, ATM & "◆ N Cr" TooltipsPlayer Login or State ChangeServer (ServerEvents / Economy / DeathStore / ItemValues)Client (ClientEconomy / ValueTooltip)Server (ServerEvents / Economy / DeathStore / ItemValues)Client (ClientEconomy / ValueTooltip)

2. Wallet & ATM Operations (wallet_action, atm_action)

Section titled “2. Wallet & ATM Operations (wallet_action, atm_action)”
wallet_action(DEPOSIT_ALL | DEPOSIT_CARRIED | WITHDRAW | SWAP_CARD, amount)Update WalletData attachmenteconomy_sync(…)atm_action(WALLET_TO_BANK | BANK_TO_WALLET | CASH_TO_BANK | BANK_TO_CASH | TRANSFER | LINK_CARD, amount, target)Verify player.containerMenu is AtmMenuMove Credits or link Bank Cardeconomy_sync(…)Client (WalletPanel / AtmScreen)Server (ModNetwork)Economy / BankDataClient (WalletPanel / AtmScreen)Server (ModNetwork)Economy / BankData

3. Tier 1 Shop Pricing & Container Button Purchases (vending_config, container_button)

Section titled “3. Tier 1 Shop Pricing & Container Button Purchases (vending_config, container_button)”
vending_config(slot, price<=10000, bundle 1..64)Update VendingOffer & sync block entityVanilla container button click (id = offer index)tryPurchase(player, index)Economy.pay(player, price, acceptsCard)PaidDispense bundle + economy_syncClient (VendingManageScreen / VendingScreen)Server (VendingManageMenu / VendingMenu)VendingMachineBlockEntityEconomyClient (VendingManageScreen / VendingScreen)Server (VendingManageMenu / VendingMenu)VendingMachineBlockEntityEconomy

4. Packet-Driven Screens (market_view, market_refresh, market_action)

Section titled “4. Packet-Driven Screens (market_view, market_refresh, market_action)”
Use Service Key / Company Terminal / Manager Workbenchmarket_view(kind=0|1|2, pos, CompoundTag)market_action(pos, RECALL | ACCESS_CODE | PAY_COMPANY | COMPANY_* | MANAGER_*, text)Mutate controller / company / force-load remote chunks for Collect Allmarket_view(kind, pos, refreshedTag)market_refresh(kind, pos)market_view(kind, pos, latestTag)Client (Engineer / Terminal / Manager Screen)Server (MarketViews / NetworkViews / CompanyData)Client (Engineer / Terminal / Manager Screen)Server (MarketViews / NetworkViews / CompanyData)

5. Spacesuit Controls & Laser Gauntlet (suit_action)

Section titled “5. Spacesuit Controls & Laser Gauntlet (suit_action)”
suit_action(OPEN | TOGGLE_VACUUM | LASER_FIRE | LASER_HOLD)Open SuitMenu / toggle SuitData bitflags / fire laser (2,000 FE)Sync chestpiece data componentsClient (SuitKeys / SuitScreen)Server (ModNetwork / SuitEffects / LaserGauntlet)Client (SuitKeys / SuitScreen)Server (ModNetwork / SuitEffects / LaserGauntlet)