001/*
002 * Forge Mod Loader
003 * Copyright (c) 2012-2013 cpw.
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser Public License v2.1
006 * which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
008 * 
009 * Contributors:
010 *     cpw - implementation
011 */
012
013package cpw.mods.fml.common.network;
014
015import net.minecraft.network.INetworkManager;
016import net.minecraft.network.packet.Packet250CustomPayload;
017
018public interface IPacketHandler
019{
020    /**
021     * Recieve a packet from one of the registered channels for this packet handler
022     * @param manager The network manager this packet arrived from
023     * @param packet The packet itself
024     * @param player A dummy interface representing the player - it can be cast into a real player instance if needed
025     */
026    public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player);
027}