NPCDumpCommand
Package: com.hypixel.hytale.server.npc.commands
public class NPCDumpCommand extends NPCWorldCommandBaseImplements /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.
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
--json | flag | no | Output in JSON format instead of plain text |
Constructor
Section titled “Constructor”public NPCDumpCommand()Registers as sub-command "dump" with translation key "server.commands.npc.dump.desc".
Related Types
Section titled “Related Types”- NPCWorldCommandBase — base class providing NPC target resolution
- NPCCommand — parent command collection
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.