Package net.minecraft.src
Class RConConsoleSource
java.lang.Object
net.minecraft.src.RConConsoleSource
- All Implemented Interfaces:
ICommandSender
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RConConsoleSourceonly ever used by MinecraftServer.executeCommand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCommandSenderUseCommand(int par1, String par2Str) Returns true if the command sender is allowed to use the given command.Gets the name of this command sender (usually username, but possibly "Rcon")Return the position for this command sender.voidresetLog()Clears the RCon logvoidsendChatToPlayer(ChatMessageComponent par1ChatMessageComponent)
-
Field Details
-
consoleBuffer
only ever used by MinecraftServer.executeCommand
-
-
Constructor Details
-
RConConsoleSource
public RConConsoleSource()
-
-
Method Details
-
resetLog
public void resetLog()Clears the RCon log -
getChatBuffer
-
getCommandSenderName
Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getCommandSenderNamein interfaceICommandSender
-
sendChatToPlayer
- Specified by:
sendChatToPlayerin interfaceICommandSender
-
canCommandSenderUseCommand
Returns true if the command sender is allowed to use the given command.- Specified by:
canCommandSenderUseCommandin interfaceICommandSender
-
getPlayerCoordinates
Return the position for this command sender.- Specified by:
getPlayerCoordinatesin interfaceICommandSender
-
getEntityWorld
- Specified by:
getEntityWorldin interfaceICommandSender
-