Skip to content

NPCDumpCommand

Package: com.hypixel.hytale.server.npc.commands

public class NPCDumpCommand extends NPCWorldCommandBase

Implements /npc dump. Dumps the complete NPC role state to the plugin logger for debugging. Traverses the role’s component tree recursively using IAnnotatedComponent and IAnnotatedComponentCollection interfaces.

Supports two output formats: a plain-text hierarchical dump (default) and a JSON dump (with --json flag). The JSON format produces a nested structure with name, index, children, and parameters fields.

ArgumentTypeRequiredDescription
--jsonflagnoOutput in JSON format instead of plain text
public NPCDumpCommand()

Registers as sub-command "dump" with translation key "server.commands.npc.dump.desc".

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