Package noppes.npcs.api
Class CommandNoppesBase
java.lang.Object
net.minecraft.command.CommandBase
noppes.npcs.api.CommandNoppesBase
- All Implemented Interfaces:
java.lang.Comparable<net.minecraft.command.ICommand>
,net.minecraft.command.ICommand
public abstract class CommandNoppesBase
extends net.minecraft.command.CommandBase
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CommandNoppesBase.SubCommand
Nested classes/interfaces inherited from class net.minecraft.command.CommandBase
net.minecraft.command.CommandBase.CoordinateArg
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.reflect.Method>
subcommands
-
Constructor Summary
Constructors Constructor Description CommandNoppesBase()
-
Method Summary
Modifier and Type Method Description void
canRun(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String usage, java.lang.String[] args)
void
execute(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String[] args)
void
executeSub(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String command, java.lang.String[] args)
abstract java.lang.String
getDescription()
int
getRequiredPermissionLevel()
java.lang.String
getUsage()
java.lang.String
getUsage(net.minecraft.command.ICommandSender sender)
boolean
runSubCommands()
Methods inherited from class net.minecraft.command.CommandBase
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, getTabCompletions, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.command.ICommand
getName
-
Field Details
-
subcommands
public java.util.Map<java.lang.String,java.lang.reflect.Method> subcommands
-
-
Constructor Details
-
CommandNoppesBase
public CommandNoppesBase()
-
-
Method Details
-
execute
public void execute(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String[] args) throws net.minecraft.command.CommandException- Throws:
net.minecraft.command.CommandException
-
getUsage
public java.lang.String getUsage(net.minecraft.command.ICommandSender sender) -
getDescription
public abstract java.lang.String getDescription() -
getUsage
public java.lang.String getUsage()- Returns:
- Should return a string in the format of
[arg4] where <> is a required parameter and [] optional
-
runSubCommands
public boolean runSubCommands() -
executeSub
public void executeSub(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String command, java.lang.String[] args) throws net.minecraft.command.CommandException- Throws:
net.minecraft.command.CommandException
-
canRun
public void canRun(net.minecraft.server.MinecraftServer server, net.minecraft.command.ICommandSender sender, java.lang.String usage, java.lang.String[] args) throws net.minecraft.command.CommandException- Throws:
net.minecraft.command.CommandException
-
getRequiredPermissionLevel
public int getRequiredPermissionLevel()- Overrides:
getRequiredPermissionLevel
in classnet.minecraft.command.CommandBase
-