Guest User

Untitled

a guest
Jun 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. @protocol MHPacketDecoderDelegate <NSObject>
  2. @required
  3. - (void)packetDecoder:(id)sender didNotDecodePacket:(NSData *)packet;
  4. @optional
  5. - (void)packetDecoder:(id)sender didDecodeKeepAlive:(BOOL)unused;
  6. - (void)packetDecoder:(id)sender didDecodeLoginRequest:(int32_t)protocolVersion username:(NSString *)username password:(NSString *)password mapseed:(int64_t)mapseed dimension:(int8_t)dimension;
  7. - (void)packetDecoder:(id)sender didDecodeHandshake:(NSString*)username;
  8. - (void)packetDecoder:(id)sender didDecodeChatMessage:(NSString*)message;
  9. - (void)packetDecoder:(id)sender didDecodeTimeUpdate:(int64_t)time;
  10. - (void)packetDecoder:(id)sender didDecodePlayerInventory:(int32_t)type count:(int16_t)count payload:(NSArray*)payload;
  11. - (void)packetDecoder:(id)sender didDecodeSpawnPosition:(int32_t)x y:(int32_t)y z:(int32_t)z;
  12. - (void)packetDecoder:(id)sender didDecodeClientState:(BOOL)onGround;
  13. - (void)packetDecoder:(id)sender didDecodePlayerMove:(double)x y:(double)y stance:(double)stance z:(double)z onGround:(BOOL)onGround;
  14. - (void)packetDecoder:(id)sender didDecodePlayerLook:(float)yaw pitch:(float)pitch onGround:(BOOL)onGround;
  15. - (void)packetDecoder:(id)sender didDecodePlayerMoveAndLook:(double)x y:(double)y stance:(double)stance z:(double)z yaw:(float)yaw pitch:(float)pitch onGround:(BOOL)onGround;
  16. - (void)packetDecoder:(id)sender didDecodePlayerDigging:(int8_t)status x:(int32_t)x y:(int8_t)y z:(int32_t) face:(int8_t)face;
  17. - (void)packetDecoder:(id)sender didDecodePlayerBlockPlacement:(int16_t)itemid x:(int32_t)x y:(int8_t)y z:(int32_t) direction:(int8_t)direction;
  18. - (void)packetDecoder:(id)sender didDecodeHeldItemChange:(int32_t)unused itemid:(int16_t)itemid;
  19. - (void)packetDecoder:(id)sender didDecodeAddToInventory:(int16_t)itemid count:(int8_t)count life:(int16_t)life;
  20. - (void)packetDecoder:(id)sender didDecodeArmAnimation:(int32_t)eid animate:(BOOL)animate;
  21. - (void)packetDecoder:(id)sender didDecodeNamedEntitySpawn:(int32_t)eid name:(NSString*)name x:(int32_t)x y:(int32_t)y z:(int32_t)z rotation:(int8_t)rotation pitch:(int8_t)pitch currentItem:(int16_t)currentItem;
  22. - (void)packetDecoder:(id)sender didDecodePickupEntitySpawn:(int32_t)eid item:(int16_t)itemid count:(int8_t)count x:(int32_t)x y:(int32_t)y z:(int32_t)z rotation:(int8_t)rotation pitch:(int8_t)pitch roll:(int8_t)roll;
  23. - (void)packetDecoder:(id)sender didDecodeCollectItem:(int32_t)collected_eid collector:(int32_t)collector_eid;
  24. - (void)packetDecoder:(id)sender didDecodeAddObject:(int32_t)eid type:(int8_t)type x:(int32_t)x y:(int32_t)y z:(int32_t)z;
  25. - (void)packetDecoder:(id)sender didDecodeMobSpawn:(int32_t)eid type:(int8_t)type x:(int32_t)x y:(int32_t)y z:(int32_t)z yaw:(int8_t)yaw pitch:(int8_t)pitch;
  26. - (void)packetDecoder:(id)sender didDecodeDestroyEntity:(int32_t)eid;
  27. - (void)packetDecoder:(id)sender didDecodeEntity:(int32_t)eid;
  28. - (void)packetDecoder:(id)sender didDecodeEntityRelativeMove:(int32_t)eid x:(int8_t)x y:(int8_t)y z:(int8_t)z;
  29. - (void)packetDecoder:(id)sender didDecodeEntityLook:(int32_t)eid yaw:(int8_t)yaw pitch:(int8_t)pitch;
  30. - (void)packetDecoder:(id)sender didDecodeEntityLookAndRelativeMove:(int32_t)eid x:(int8_t)x y:(int8_t)y z:(int8_t)z yaw:(int8_t)yaw pitch:(int8_t)pitch;
  31. - (void)packetDecoder:(id)sender didDecodeEntityTeleport:(int32_t)eid x:(int32_t)x y:(int32_t)y z:(int32_t)z yaw:(int8_t)yaw pitch:(int8_t)pitch;
  32. - (void)packetDecoder:(id)sender didDecodePreChunk:(int32_t)x z:(int32_t)z mode:(BOOL)mode;
  33. - (void)packetDecoder:(id)sender didDecodeMapChunk:(int32_t)x y:(int16_t)y z:(int32_t)z sizeX:(int8_t)sizeX sizeY:(int8_t)sizeY sizeZ:(int8_t)sizeZ compressedSize:(int32_t)compressedSize compressedData:(NSData *)compressedData;
  34. - (void)packetDecoder:(id)sender didDecodeMultiBlockChange:(int32_t)chunkX chunkZ:(int32_t)chunkZ arraySize:(int16_t)arraySize coordArray:(int16_t *)coordArray typeArray:(int8_t *)typeArray metaArray:(int8_t *)metaArray;
  35. - (void)packetDecoder:(id)sender didDecodeBlockChange:(int32_t)x y:(int8_t)y z:(int32_t)z blockType:(int8_t)type metadata:(int8_t)metadata;
  36. - (void)packetDecoder:(id)sender didDecodeKick:(NSString *)reason;
  37. @end
Add Comment
Please, Sign In to add comment