Guest User

Untitled

a guest
Sep 25th, 2018
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.krokoyt.gswords.events;
  2.  
  3. import cpw.mods.fml.common.network.NetworkRegistry;
  4. import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  5. import cpw.mods.fml.relauncher.Side;
  6. import de.krokoyt.gswords.GiantSword;
  7. import de.krokoyt.gswords.Skills.*;
  8.  
  9. public class AddPackets {
  10.  
  11. public static SimpleNetworkWrapper network;
  12. public static void init()
  13. {
  14. network = NetworkRegistry.INSTANCE.newSimpleChannel("GiantSwordPackets");
  15. network.registerMessage(AdventureMessage.Handler.class, AdventureMessage.class, 13, Side.CLIENT);
  16. network.registerMessage(AntiGiftMessage.Handler.class, AntiGiftMessage.class, 13, Side.CLIENT);
  17. network.registerMessage(DamageMessage.Handler.class, DamageMessage.class, 13, Side.CLIENT);
  18. network.registerMessage(FarmMessage.Handler.class, FarmMessage.class, 13, Side.CLIENT);
  19. network.registerMessage(GhostMessage.Handler.class, GhostMessage.class, 13, Side.CLIENT);
  20. network.registerMessage(HealthMessage.Handler.class, HealthMessage.class, 13, Side.CLIENT);
  21. network.registerMessage(JagerMessage.Handler.class, JagerMessage.class, 13, Side.CLIENT);
  22. network.registerMessage(MiningMessage.Handler.class, MiningMessage.class, 13, Side.CLIENT);
  23. network.registerMessage(RustungMessage.Handler.class, RustungMessage.class, 13, Side.CLIENT);
  24. network.registerMessage(TreeMessage.Handler.class, TreeMessage.class, 13, Side.CLIENT);
  25. }
  26.  
  27. }
RAW Paste Data