Skip to content

AssetEditorGamePacketHandler

Package: com.hypixel.hytale.builtin.asseteditor

public class AssetEditorGamePacketHandler implements SubPacketHandler

Handles asset editor packets arriving through the in-game client connection. Registered as a sub-packet handler on ServerManager. Supports two packet types: AssetEditorInitialize (packet ID 302) for opening the editor, and AssetEditorUpdateJsonAsset (packet ID 323, deprecated) for inline JSON updates.

When the plugin is disabled, both packet IDs are registered as no-ops.

public AssetEditorGamePacketHandler(IPacketHandler packetHandler)
MethodDescription
void registerHandlers()Registers packet handlers or no-ops based on plugin state
void handle(AssetEditorInitialize)Authorizes the player via hytale.editor.asset permission, sends AssetEditorAuthorization, and initializes the editor
void handle(AssetEditorUpdateJsonAsset)Deprecated. Creates a mock EditorClient from the PlayerRef and dispatches JSON update asynchronously

Requires the hytale.editor.asset permission. Players without this permission receive an AssetEditorAuthorization(false) response or the Messages.USAGE_DENIED message.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.