Package net.minecraft.src
Class CommandBase
java.lang.Object
net.minecraft.src.CommandBase
- All Implemented Interfaces:
Comparable,ICommand
- Direct Known Subclasses:
CommandClearInventory,CommandDebug,CommandDifficulty,CommandEffect,CommandEnchant,CommandGameMode,CommandGameRule,CommandGive,CommandHelp,CommandKill,CommandPlaySound,CommandServerBan,CommandServerBanIp,CommandServerBanlist,CommandServerDeop,CommandServerEmote,CommandServerKick,CommandServerList,CommandServerMessage,CommandServerOp,CommandServerPardon,CommandServerPardonIp,CommandServerPublishLocal,CommandServerSaveAll,CommandServerSaveOff,CommandServerSaveOn,CommandServerSay,CommandServerStop,CommandServerTp,CommandServerWhitelist,CommandSetPlayerTimeout,CommandSetSpawnpoint,CommandShowSeed,CommandSpreadPlayers,CommandTime,CommandToggleDownfall,CommandWeather,CommandXP,EmiCommands,GlobalChatCommand,PanoramaCommand,ServerCommandScoreboard,ServerCommandTestFor,ServerLocCommand,SetWorldSpawnCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTabCompletionOptions(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) Adds the strings available in this command to the given list of tab completion options.booleancanCommandSenderUseCommand(ICommandSender par1ICommandSender) Returns true if the given command sender is allowed to use this command.intintCompares the name of this command to the name of the given command.static booleandoesStringStartWith(String par0Str, String par1Str) Returns true if the given substring is exactly equal to the start of the given string (case insensitive).static doublefunc_110661_a(ICommandSender par0ICommandSender, String par1Str, double par2, double par4) static booleanfunc_110662_c(ICommandSender par0ICommandSender, String par1Str) static Stringfunc_110663_b(Collection par0Collection) static doublefunc_110664_a(ICommandSender par0ICommandSender, String par1Str, double par2) static doublefunc_110665_a(ICommandSender par0ICommandSender, double par1, String par3Str, int par4, int par5) static doublefunc_110666_a(ICommandSender par0ICommandSender, double par1, String par3Str) static Stringfunc_82360_a(ICommandSender par0ICommandSender, String[] par1ArrayOfStr, int par2) static Stringfunc_82361_a(ICommandSender par0ICommandSender, String[] par1ArrayOfStr, int par2, boolean par3) static Stringfunc_96332_d(ICommandSender par0ICommandSender, String par1Str) static Stringfunc_96333_a(Collection par0Collection) static EntityPlayerMPgetCommandSenderAsPlayer(ICommandSender par0ICommandSender) Returns the given ICommandSender as a EntityPlayer or throw an exception.static ListgetListOfStringsFromIterableMatchingLastWord(String[] par0ArrayOfStr, Iterable par1Iterable) Returns a List of strings (chosen from the given string iterable) which the last word in the given string array is a beginning-match for.static ListgetListOfStringsMatchingLastWord(String[] par0ArrayOfStr, String... par1ArrayOfStr) Returns a List of strings (chosen from the given strings) which the last word in the given string array is a beginning-match for.static EntityPlayerMPgetPlayer(ICommandSender par0ICommandSender, String par1Str) intReturn the required permission level for this command.booleanisUsernameIndex(String[] par1ArrayOfStr, int par2) Return whether the specified command parameter index is a username parameter.static StringjoinNiceString(Object[] par0ArrayOfObj) Joins the given string array into a "x, y, and z" seperated string.static voidnotifyAdmins(ICommandSender par0ICommandSender, int par1, String par2Str, Object... par3ArrayOfObj) static voidnotifyAdmins(ICommandSender par0ICommandSender, String par1Str, Object... par2ArrayOfObj) static doubleparseDouble(ICommandSender par0ICommandSender, String par1Str) Parses a double from the given string or throws an exception if it's not a double.static intparseInt(ICommandSender par0ICommandSender, String par1Str) Parses an int from the given string.static intparseIntBounded(ICommandSender par0ICommandSender, String par1Str, int par2, int par3) Parses an int from the given string within a specified bound.static intparseIntWithMin(ICommandSender par0ICommandSender, String par1Str, int par2) Parses an int from the given sring with a specified minimum.static voidsetAdminCommander(IAdminCommand par0IAdminCommand) Sets the static IAdminCommander.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.src.ICommand
getCommandName, getCommandUsage, processCommand
-
Constructor Details
-
CommandBase
public CommandBase()
-
-
Method Details
-
getRequiredPermissionLevel
public int getRequiredPermissionLevel()Return the required permission level for this command. -
getCommandAliases
- Specified by:
getCommandAliasesin interfaceICommand
-
canCommandSenderUseCommand
Returns true if the given command sender is allowed to use this command.- Specified by:
canCommandSenderUseCommandin interfaceICommand
-
addTabCompletionOptions
Adds the strings available in this command to the given list of tab completion options.- Specified by:
addTabCompletionOptionsin interfaceICommand
-
parseInt
Parses an int from the given string. -
parseIntWithMin
Parses an int from the given sring with a specified minimum. -
parseIntBounded
public static int parseIntBounded(ICommandSender par0ICommandSender, String par1Str, int par2, int par3) Parses an int from the given string within a specified bound. -
parseDouble
Parses a double from the given string or throws an exception if it's not a double. -
func_110664_a
-
func_110661_a
public static double func_110661_a(ICommandSender par0ICommandSender, String par1Str, double par2, double par4) -
func_110662_c
-
getCommandSenderAsPlayer
Returns the given ICommandSender as a EntityPlayer or throw an exception. -
getPlayer
-
func_96332_d
-
func_82360_a
public static String func_82360_a(ICommandSender par0ICommandSender, String[] par1ArrayOfStr, int par2) -
func_82361_a
public static String func_82361_a(ICommandSender par0ICommandSender, String[] par1ArrayOfStr, int par2, boolean par3) -
func_110666_a
-
func_110665_a
public static double func_110665_a(ICommandSender par0ICommandSender, double par1, String par3Str, int par4, int par5) -
joinNiceString
Joins the given string array into a "x, y, and z" seperated string. -
func_96333_a
-
func_110663_b
-
doesStringStartWith
Returns true if the given substring is exactly equal to the start of the given string (case insensitive). -
getListOfStringsMatchingLastWord
public static List getListOfStringsMatchingLastWord(String[] par0ArrayOfStr, String... par1ArrayOfStr) Returns a List of strings (chosen from the given strings) which the last word in the given string array is a beginning-match for. (Tab completion). -
getListOfStringsFromIterableMatchingLastWord
public static List getListOfStringsFromIterableMatchingLastWord(String[] par0ArrayOfStr, Iterable par1Iterable) Returns a List of strings (chosen from the given string iterable) which the last word in the given string array is a beginning-match for. (Tab completion). -
isUsernameIndex
Return whether the specified command parameter index is a username parameter.- Specified by:
isUsernameIndexin interfaceICommand
-
notifyAdmins
public static void notifyAdmins(ICommandSender par0ICommandSender, String par1Str, Object... par2ArrayOfObj) -
notifyAdmins
public static void notifyAdmins(ICommandSender par0ICommandSender, int par1, String par2Str, Object... par3ArrayOfObj) -
setAdminCommander
Sets the static IAdminCommander. -
compareTo
Compares the name of this command to the name of the given command. -
compareTo
- Specified by:
compareToin interfaceComparable
-