Advertisement
TechMage66

PacketHandler

Jun 4th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. package com.techmage.magetech.handler;
  2.  
  3. import com.techmage.magetech.network.PacketPowerFurnaceSetMode;
  4. import com.techmage.magetech.network.PacketSolderingStationCraftingButtonPressed;
  5. import com.techmage.magetech.network.PacketTalismanSwitch;
  6. import cpw.mods.fml.common.network.NetworkRegistry;
  7. import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  8. import cpw.mods.fml.relauncher.Side;
  9.  
  10. public class PacketHandler
  11. {
  12.     public static final SimpleNetworkWrapper packetReq = NetworkRegistry.INSTANCE.newSimpleChannel("magetech");
  13.  
  14.     public static void init()
  15.     {
  16.         packetReq.registerMessage(PacketTalismanSwitch.Handler.class, PacketTalismanSwitch.class, 0, Side.SERVER);
  17.     };
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement