mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
More work, moved over packet stuff, need to change everything to use new NetworkMod system
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user