mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
16 lines
591 B
Java
16 lines
591 B
Java
package cpw.mods.fml.common.network;
|
|
|
|
import net.minecraft.src.INetworkManager;
|
|
import net.minecraft.src.Packet250CustomPayload;
|
|
|
|
public interface IPacketHandler
|
|
{
|
|
/**
|
|
* Recieve a packet from one of the registered channels for this packet handler
|
|
* @param manager The network manager this packet arrived from
|
|
* @param packet The packet itself
|
|
* @param player A dummy interface representing the player - it can be cast into a real player instance if needed
|
|
*/
|
|
public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player);
|
|
}
|