Advertisement
Guest User

Untitled

a guest
Jul 19th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. So, since having vent() inside EjectItems() didn't work, here's what I've tried so far...
  2. How can I get the TE??
  3.  
  4. public class TKPacketHandler {
  5.  
  6. private static byte idx = 0;
  7. private static final SimpleNetworkWrapper TKHandler = NetworkRegistry.INSTANCE.newSimpleChannel(Knowledge.MODID.toLowerCase());
  8.  
  9. public static void init() {
  10.  
  11. TKHandler.registerMessage(P_TGVenting.class, P_TGVenting.class, idx++, Side.CLIENT)
  12. }}
  13.  
  14.  
  15.  
  16. public class P_TGVenting implements IMessage, IMessageHandler<P_TGVenting, IMessage> {
  17.  
  18.  
  19.  
  20. //public P_TGVenting() {}
  21.  
  22.  
  23. public P_TGVenting() {
  24.  
  25. }
  26.  
  27. @Override
  28. public void fromBytes(ByteBuf buf) {
  29. // TODO Auto-generated method stub
  30.  
  31. }
  32.  
  33. @Override
  34. public void toBytes(ByteBuf buf) {
  35. // TODO Auto-generated method stub
  36.  
  37. }
  38.  
  39.  
  40. @SideOnly(Side.CLIENT)
  41. @Override
  42. public IMessage onMessage(P_TGVenting message, MessageContext ctx) {
  43.  
  44.  
  45.  
  46. return null;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement