Package net.minecraft.network.rcon
Class RConConsoleSource
- java.lang.Object
-
- net.minecraft.network.rcon.RConConsoleSource
-
- All Implemented Interfaces:
ICommandSource
public class RConConsoleSource extends java.lang.Object implements ICommandSource
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuffer
buffer
private static StringTextComponent
RCON_COMPONENT
private MinecraftServer
server
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Constructor Description RConConsoleSource(MinecraftServer p_i46835_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsFailure()
boolean
acceptsSuccess()
CommandSource
createCommandSourceStack()
java.lang.String
getCommandResponse()
void
prepareForCommand()
void
sendMessage(ITextComponent p_145747_1_, java.util.UUID p_145747_2_)
boolean
shouldInformAdmins()
-
-
-
Field Detail
-
RCON_COMPONENT
private static final StringTextComponent RCON_COMPONENT
-
buffer
private final java.lang.StringBuffer buffer
-
server
private final MinecraftServer server
-
-
Constructor Detail
-
RConConsoleSource
public RConConsoleSource(MinecraftServer p_i46835_1_)
-
-
Method Detail
-
prepareForCommand
public void prepareForCommand()
-
getCommandResponse
public java.lang.String getCommandResponse()
-
createCommandSourceStack
public CommandSource createCommandSourceStack()
-
sendMessage
public void sendMessage(ITextComponent p_145747_1_, java.util.UUID p_145747_2_)
- Specified by:
sendMessage
in interfaceICommandSource
-
acceptsSuccess
public boolean acceptsSuccess()
- Specified by:
acceptsSuccess
in interfaceICommandSource
-
acceptsFailure
public boolean acceptsFailure()
- Specified by:
acceptsFailure
in interfaceICommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()
- Specified by:
shouldInformAdmins
in interfaceICommandSource
-
-