Class NPCWorldCommandBase
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
- Direct Known Subclasses:
NPCAppearanceCommand,NPCAttackCommand.ClearAttackCommand,NPCAttackCommand.SetAttackCommand,NPCDumpCommand,NPCGiveCommand,NPCGiveCommand.GiveNothingCommand,NPCMultiSelectCommandBase,NPCPathCommand.PolygonPathCommand,NPCPathCommand.SetPathCommand,NPCRoleCommand,NPCRoleCommand.GetRoleCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityWrappedArgprotected static final Messageprotected static final MessageFields inherited from class com.hypixel.hytale.server.core.command.system.AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionNPCWorldCommandBase(String description) NPCWorldCommandBase(String name, String description) NPCWorldCommandBase(String name, String description, boolean requiresConfirmation) -
Method Summary
Modifier and TypeMethodDescriptionprotected static NPCEntityensureIsNPC(CommandContext context, Store<EntityStore> store, Ref<EntityStore> ref) protected voidexecute(CommandContext context, World world, Store<EntityStore> store) protected abstract voidexecute(CommandContext var1, NPCEntity var2, World var3, Store<EntityStore> var4, Ref<EntityStore> var5) private NPCEntitygetNPC(CommandContext context, Store<EntityStore> store) Methods 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
-
MESSAGE_COMMANDS_ERRORS_PLAYER_OR_ARG
-
MESSAGE_COMMANDS_ERRORS_NO_ENTITY_IN_VIEW
-
entityArg
-
-
Constructor Details
-
NPCWorldCommandBase
-
NPCWorldCommandBase
-
NPCWorldCommandBase
-
-
Method Details
-
execute
protected void execute(@Nonnull CommandContext context, @Nonnull World world, @Nonnull Store<EntityStore> store) - Specified by:
executein classAbstractWorldCommand
-
execute
protected abstract void execute(@Nonnull CommandContext var1, @Nonnull NPCEntity var2, @Nonnull World var3, @Nonnull Store<EntityStore> var4, @Nonnull Ref<EntityStore> var5) -
getNPC
@Nullable private NPCEntity getNPC(@Nonnull CommandContext context, @Nonnull Store<EntityStore> store) -
ensureIsNPC
@Nullable protected static NPCEntity ensureIsNPC(@Nonnull CommandContext context, @Nonnull Store<EntityStore> store, Ref<EntityStore> ref)
-