Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package com.pam.harvestcraft;
  2.  
  3.  
  4. import cpw.mods.fml.common.network.NetworkRegistry;
  5. import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  6. import cpw.mods.fml.relauncher.Side;
  7.  
  8. public class PacketHandler
  9. {
  10. public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("cfm");
  11.  
  12. public static void init()
  13. {
  14. INSTANCE.registerMessage(MessageMineBayBrowse.class, MessageMineBayBrowse.class, 0, Side.SERVER);
  15. INSTANCE.registerMessage(MessageMarketBuy.class, MessageMarketBuy.class, 1, Side.SERVER);
  16. INSTANCE.registerMessage(MessageMineBayClosed.class, MessageMineBayClosed.class, 2, Side.SERVER);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement