More work, moved over packet stuff, need to change everything to use new NetworkMod system

This commit is contained in:
LexManos committed 2012-08-06 20:45:37 -07:00
1 parent 8db1584730
commit 4e91293271
14 files changed
+250 -160

No files matched your search

@@ -0,0 +1,24 @@
package net.minecraftforge.packets;
import net.minecraft.src.NetworkManager;
import net.minecraft.src.Packet;
import net.minecraft.src.forge.IPacketHandler;
/**
* A helper class used to make a shared interface for sending packets,
* Should not be used outside the API itself.
*/
public abstract class PacketHandlerBase implements IPacketHandler
{
public static boolean DEBUG = false;
/**
* Sends out a packet to the specified network manager.
* This is necessary because NetClientHandler, and
* NetServerHandler are not on both sides.
*
* @param network The manager to send the packet to
* @param packet The packet to send
*/
public abstract void sendPacket(NetworkManager network, Packet packet);
}