/*
 * Copyright  2014 - 2016 | Wurst-Imperium | All rights reserved.
 * 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package tk.wurst_client.chat;

import net.minecraft.client.Minecraft;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextComponentString;

public class ChatManager
{
	private boolean enabled = true;
	
	public void setEnabled(boolean enabled)
	{
		this.enabled = enabled;
	}
	
	public void component(ITextComponent component)
	{
		if(enabled)
			Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(
				new TextComponentString("c[6Wurstc]f ")
					.appendSibling(component));
	}
	
	public void message(String message)
	{
		component(new TextComponentString(message));
	}
	
	public void info(String message)
	{
		message("8[7lINFO8]f " + message);
	}
	
	public void debug(String message)
	{
		message("8[7lDEBUG-INFO8]f " + message);
	}
	
	public void warning(String message)
	{
		message("c[6lWARNINGc]f " + message);
	}
	
	public void error(String message)
	{
		message("c[4lERRORc]f " + message);
	}
	
	public void success(String message)
	{
		message("a[2lSUCCESSa]f " + message);
	}
	
	public void failure(String message)
	{
		message("c[4lFAILUREc]f " + message);
	}
	
	public void cmd(String message)
	{
		Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(
			new TextComponentString("c[6Wurstc]f 0l<aCMD0l>f "
				+ message));
	}
}

@@ -892,173 +892,8 @@
 %7D%0A%09%0A
-%09public void info(String message)%0A%09%7B%0A%09%09message(%228%5B7lINFO8%5Df %22 + message);%0A%09%7D%0A%09%0A%09public void debug(String message)%0A%09%7B%0A%09%09message(%228%5B7lDEBUG-INFO8%5Df %22 + message);%0A%09%7D%0A%09%0A
 %09pub

Remove unused ChatManager methods