Skip to content

NPCCommand

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

public class NPCCommand extends AbstractCommandCollection

Root command collection for the /npc command tree. Registered by NPCPlugin.setup(). All NPC sub-commands are added in the constructor: all, appearance, attack, benchmark, blackboard, clean, debug, dump, flock, freeze, give, path, role, runtests, sensorstats, spawn, step, test, thaw, and message.

public static final SingleArgumentType<BuilderInfo> NPC_ROLE

Custom argument type for parsing NPC role names. Resolves the input string to a BuilderInfo via NPCPlugin.getIndex() and NPCPlugin.getRoleBuilderInfo(). Provides tab-completion by listing all available role template names from NPCPlugin.getRoleTemplateNames(). On failure, suggests similar names using StringUtil.sortByFuzzyDistance().

public NPCCommand()

Creates the root /npc command with the translation key "server.commands.npc" and registers all sub-commands.

Sub-commandClass
allNPCAllCommand
appearanceNPCAppearanceCommand
attackNPCAttackCommand
benchmarkNPCBenchmarkCommand
blackboardNPCBlackboardCommand
cleanNPCCleanCommand
debugNPCDebugCommand
dumpNPCDumpCommand
flockNPCFlockCommand
freezeNPCFreezeCommand
giveNPCGiveCommand
pathNPCPathCommand
roleNPCRoleCommand
runtestsNPCRunTestsCommand
sensorstatsNPCSensorStatsCommand
spawnNPCSpawnCommand
stepNPCStepCommand
testNPCTestCommand
thawNPCThawCommand
messageNPCMessageCommand
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.