    001package cpw.mods.fml.common.network;
    002
    003import net.minecraft.network.INetworkManager;
    004import net.minecraft.network.packet.Packet250CustomPayload;
    005
    006public interface IPacketHandler
    007{
    008    /**
    009     * Recieve a packet from one of the registered channels for this packet handler
    010     * @param manager The network manager this packet arrived from
    011     * @param packet The packet itself
    012     * @param player A dummy interface representing the player - it can be cast into a real player instance if needed
    013     */
    014    public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player);
    015}