Java 类net.minecraft.server.ChatMessage 实例源码

项目:Almura-Server    文件:CraftRemoteConsoleCommandSender.java   
public void sendMessage(String message) {
    RemoteControlCommandListener.instance.sendMessage(ChatMessage.d(message + "\n")); // Send a newline after each message, to preserve formatting.
}
项目:Almura-Server    文件:ServerCommandListener.java   
public void sendMessage(ChatMessage chatmessage) {
    this.commandSender.sendMessage(chatmessage.toString());
}