/*
 * 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));
	}
}

/*
 * 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 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));
	}
}

Remove unused ChatManager methods