Class NPCRunTestsCommand
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.AbstractPlayerCommand
com.hypixel.hytale.server.npc.commands.NPCRunTestsCommand
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FlagArgprivate final FlagArgprivate static final Messageprivate final FlagArgprivate final FlagArgprivate final OptionalArg<String> Fields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcleanupNPC(Ref<EntityStore> ref, Store<EntityStore> store) protected voidexecute(CommandContext context, Store<EntityStore> store, Ref<EntityStore> ref, PlayerRef playerRef, World world) private static voidreportResults(Ref<EntityStore> playerReference, NPCRunTestsCommand.NPCTestData testData, Store<EntityStore> store) private static voidsetNextRole(NPCRunTestsCommand.NPCTestData testData, Ref<EntityStore> reference, Store<EntityStore> store, World world) private static voidspawnNPC(Ref<EntityStore> playerReference, NPCRunTestsCommand.NPCTestData testData, int index, Vector3d position, Vector3f rotation, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.server.core.command.system.basecommands.AbstractPlayerCommand
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
-
MESSAGE_COMMANDS_NPC_RUN_TESTS_SPECIFY_ROLES
-
rolesArg
-
presetArg
-
passArg
-
failArg
-
abortArg
-
-
Constructor Details
-
NPCRunTestsCommand
public NPCRunTestsCommand()
-
-
Method Details
-
execute
protected void execute(@Nonnull CommandContext context, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull PlayerRef playerRef, @Nonnull World world) - Specified by:
executein classAbstractPlayerCommand
-
setNextRole
private static void setNextRole(@Nonnull NPCRunTestsCommand.NPCTestData testData, @Nonnull Ref<EntityStore> reference, @Nonnull Store<EntityStore> store, @Nonnull World world) -
cleanupNPC
-
spawnNPC
private static void spawnNPC(@Nonnull Ref<EntityStore> playerReference, @Nonnull NPCRunTestsCommand.NPCTestData testData, int index, @Nonnull Vector3d position, @Nullable Vector3f rotation, @Nonnull Store<EntityStore> store) -
reportResults
private static void reportResults(@Nonnull Ref<EntityStore> playerReference, @Nonnull NPCRunTestsCommand.NPCTestData testData, @Nonnull Store<EntityStore> store)
-