ChatListener.java 596 Bytes
/*
 * This file is part of LiteLoader.
 * Copyright (C) 2012-16 Adam Mummery-Smith
 * All Rights Reserved.
 */
package com.mumfrey.liteloader;

import net.minecraft.util.text.ITextComponent;


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