Class NPCDumpCommand
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractWorldCommand
com.hypixel.hytale.server.npc.commands.NPCWorldCommandBase
com.hypixel.hytale.server.npc.commands.NPCDumpCommand
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.commands.NPCWorldCommandBase
entityArg, MESSAGE_COMMANDS_ERRORS_NO_ENTITY_IN_VIEW, MESSAGE_COMMANDS_ERRORS_PLAYER_OR_ARGFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddumpComponent(Role role, IAnnotatedComponent component, int index, int nestingDepth, List<ComponentInfo> infoList) private static voiddumpComponentsAsJson(Role role, IAnnotatedComponent component, int index, int nestingDepth, com.google.gson.JsonElement parent) protected voidexecute(CommandContext context, NPCEntity npc, World world, Store<EntityStore> store, Ref<EntityStore> ref) Methods inherited from class com.hypixel.hytale.server.npc.commands.NPCWorldCommandBase
ensureIsNPC, executeMethods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractWorldCommand
executeAsyncMethods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
execute, runAsyncMethods inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, canGeneratePermission, completeRegistration, countParents, generatePermissionNode, getAliases, getDescription, getFullyQualifiedName, getName, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommands, getUsageShort, getUsageString, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requirePermission, setAllowsExtraArguments, setOwner, setPermissionGroup, setPermissionGroups, setUnavailableInSingleplayer, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Field Details
-
jsonArg
-
-
Constructor Details
-
NPCDumpCommand
public NPCDumpCommand()
-
-
Method Details
-
execute
protected void execute(@Nonnull CommandContext context, @Nonnull NPCEntity npc, @Nonnull World world, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref) - Specified by:
executein classNPCWorldCommandBase
-
dumpComponent
private static void dumpComponent(@Nonnull Role role, @Nonnull IAnnotatedComponent component, int index, int nestingDepth, @Nonnull List<ComponentInfo> infoList) -
dumpComponentsAsJson
private static void dumpComponentsAsJson(@Nonnull Role role, @Nonnull IAnnotatedComponent component, int index, int nestingDepth, @Nonnull com.google.gson.JsonElement parent)
-