net.minecraft.src
Class RConConsoleSource
java.lang.Object
net.minecraft.src.RConConsoleSource
- All Implemented Interfaces:
- ICommandSender
public class RConConsoleSource
- extends Object
- implements ICommandSender
consoleBuffer
public static final RConConsoleSource consoleBuffer
- only ever used by MinecraftServer.executeCommand
RConConsoleSource
public RConConsoleSource()
clearChatBuffer
public void clearChatBuffer()
getChatBuffer
public String getChatBuffer()
getCommandSenderName
public String getCommandSenderName()
- Gets the name of this command sender (usually username, but possibly "Rcon")
- Specified by:
getCommandSenderName
in interface ICommandSender
sendChatToPlayer
public void sendChatToPlayer(String par1Str)
- Specified by:
sendChatToPlayer
in interface ICommandSender
canCommandSenderUseCommand
public boolean canCommandSenderUseCommand(String par1Str)
- Returns true if the command sender is allowed to use the given command.
- Specified by:
canCommandSenderUseCommand
in interface ICommandSender
translateString
public String translateString(String par1Str,
Object... par2ArrayOfObj)
- Translates and formats the given string key with the given arguments.
- Specified by:
translateString
in interface ICommandSender