package mineverse.Aust1n46.chat;

import com.comphenix.protocol.wrappers.WrappedChatComponent;

//This class is used to create ChatMessage objects, which are used to store information about previous text components
//that were sent to the player.  This is a main component in making the message remover work.
public class ChatMessage {
	private WrappedChatComponent component;
	private String message;
	private String coloredMessage;
	private int hash;

	public ChatMessage(WrappedChatComponent component, String message, String coloredMessage) {
		this.component = component;
		this.message = message;
		this.coloredMessage = coloredMessage;
		this.hash = message.hashCode();
	}

	public WrappedChatComponent getComponent() {
		return this.component;
	}

	public void setComponent(WrappedChatComponent component) {
		this.component = component;
	}

	public String getMessage() {
		return this.message;
	}
	
	public String getColoredMessage() {
		return this.coloredMessage;
	}

	public int getHash() {
		return this.hash;
	}

	public void setHash(int hash) {
		this.hash = hash;
	}
}