Class ClientPayloadHandler
java.lang.Object
johnsmith.enchantingoverhauled.client.network.ClientPayloadHandler
Handles the reception and execution of custom network payloads on the logical client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleMenuSync(EnchantmentMenuSyncPayload payload) Processes theEnchantmentMenuSyncPayloadreceived from the server.
-
Constructor Details
-
ClientPayloadHandler
public ClientPayloadHandler()
-
-
Method Details
-
handleMenuSync
Processes theEnchantmentMenuSyncPayloadreceived from the server.Updates the client-side active
EnchantmentMenuwith the server-calculated list of enchantment contexts. This task is enqueued onto the main client thread to ensure thread safety and preventConcurrentModificationExceptions when the UI reads this data during a render frame.- Parameters:
payload- The payload containing the container ID and the list of contexts.
-