public class RConConsoleSource extends java.lang.Object implements ICommandSender
| Constructor and Description |
|---|
RConConsoleSource(MinecraftServer serverIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUseCommand(int permLevel,
java.lang.String commandName)
Returns
true if the CommandSender is allowed to execute the command, false if not |
World |
getEntityWorld()
Get the world, if available.
|
java.lang.String |
getLogContents()
Gets the contents of the RCon log
|
java.lang.String |
getName()
Get the name of this object.
|
MinecraftServer |
getServer()
Get the Minecraft server instance
|
void |
resetLog()
Clears the RCon log
|
boolean |
sendCommandFeedback()
Returns true if the command sender should be sent feedback about executed commands
|
void |
sendMessage(ITextComponent component)
Send a chat message to the CommandSender
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandSenderEntity, getDisplayName, getPosition, getPositionVector, setCommandStatpublic RConConsoleSource(MinecraftServer serverIn)
public java.lang.String getName()
getName in interface ICommandSenderpublic void sendMessage(ITextComponent component)
sendMessage in interface ICommandSenderpublic boolean canUseCommand(int permLevel,
java.lang.String commandName)
true if the CommandSender is allowed to execute the command, false if notcanUseCommand in interface ICommandSenderpublic World getEntityWorld()
null is not allowed! If you are not an entity in the world, return
the overworldgetEntityWorld in interface ICommandSenderpublic boolean sendCommandFeedback()
sendCommandFeedback in interface ICommandSenderpublic MinecraftServer getServer()
getServer in interface ICommandSenderpublic void resetLog()
public java.lang.String getLogContents()