mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
28 lines
976 B
Java
28 lines
976 B
Java
/*
|
|
* Forge Mod Loader
|
|
* Copyright (c) 2012-2013 cpw.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v2.1
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
*
|
|
* Contributors:
|
|
* cpw - implementation
|
|
*/
|
|
|
|
package cpw.mods.fml.common.network;
|
|
|
|
import net.minecraft.network.INetworkManager;
|
|
import net.minecraft.network.packet.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);
|
|
}
|