fr1kin

Untitled

Jan 15th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. //
  2. // classes
  3. //
  4. public final ASMClass CLASS_PACKET = ASMClassMc.getOrCreateClass("net/minecraft/network/Packet");
  5.  
  6. public final ASMClass CLASS_NETWORKMANAGER = ASMClassMc.getOrCreateClass("net/minecraft/network/NetworkManager");
  7.  
  8. //
  9. // methods
  10. //
  11.  
  12. public final ASMMethod NETWORKMANAGER_DISPATCH_PACKET = CLASS_NETWORKMANAGER.childMethod("dispatchPacket", false,
  13. void.class,
  14. CLASS_PACKET, GenericFutureListener[].class
  15. );
  16.  
  17.  
  18.  
  19. Results in obfuscated minecraft:
  20.  
  21. CLASS_PACKET: fm
  22. CLASS_NETWORKMANAGER: er
  23.  
  24. NETWORKMANAGER_DISPATCH_PACKET: er::a(Lfm;[Lio/netty/util/concurrent/GenericFutureListener;)V
Advertisement
Add Comment
Please, Sign In to add comment