ChatListener.java 459 Bytes
package com.mumfrey.liteloader;

import net.minecraft.util.IChatComponent;


/**
 * Interface for mods which receive inbound chat
 *
 * @author Adam Mummery-Smith
 */
public interface ChatListener extends LiteMod
{
	/**
	 * Handle an inbound message
	 * 
	 * @param chat IChatComponent parsed from the chat packet
	 * @param message Chat message parsed from the chat message component
	 */
	public abstract void onChat(IChatComponent chat, String message);
}