Skip to content

Commit

Permalink
Packet stuff (#60)
Browse files Browse the repository at this point in the history
* yute

* Find and Replace go brr

* yit

* yete

* yute

* yort
  • Loading branch information
BoogieMonster1O1 authored Apr 16, 2021
1 parent 2f6160f commit a6066dd
Show file tree
Hide file tree
Showing 111 changed files with 542 additions and 82 deletions.
1 change: 1 addition & 0 deletions mappings/net/minecraft/entity/player/ServerPlayer.mapping
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CLASS net/minecraft/class_69 net/minecraft/entity/player/ServerPlayer
FIELD field_255 packetHandler Lnet/minecraft/class_11;
FIELD field_259 visibleItems [Lnet/minecraft/class_31;
METHOD method_307 onContainerClosed ()V
METHOD method_316 getVisibleItem (I)Lnet/minecraft/class_31;
ARG 1 type
102 changes: 93 additions & 9 deletions mappings/net/minecraft/network/PacketHandler.mapping
Original file line number Diff line number Diff line change
@@ -1,23 +1,107 @@
CLASS net/minecraft/class_240 net/minecraft/network/PacketHandler
METHOD method_1422 handleEntityInteract (Lnet/minecraft/class_1;)V
ARG 1 packet
METHOD method_1423 handleItemUse (Lnet/minecraft/class_145;)V
ARG 1 packet
METHOD method_1424 handleHeldSlotChange (Lnet/minecraft/class_170;)V
ARG 1 packet
METHOD method_1425 handleBasePlayer (Lnet/minecraft/class_184;)V
ARG 1 packet
METHOD method_1426 handlePlayerDigging (Lnet/minecraft/class_228;)V
ARG 1 packet
METHOD method_1427 handleContainerClose (Lnet/minecraft/class_276;)V
ARG 1 packet
METHOD method_1428 handleHandSwing (Lnet/minecraft/class_305;)V
METHOD method_1428 handleAnimation (Lnet/minecraft/class_305;)V
ARG 1 packet
METHOD method_1429 handleTransaction (Lnet/minecraft/class_325;)V
ARG 1 packet
METHOD method_1430 handleRespawn (Lnet/minecraft/class_335;)V
ARG 1 packet
METHOD method_1431 handleChatMessage (Lnet/minecraft/class_340;)V
ARG 1 packet
METHOD method_1438 (Lnet/minecraft/class_435;)V
METHOD method_1432 handleStance (Lnet/minecraft/class_357;)V
ARG 1 packet
METHOD method_1433 handleSlotClicked (Lnet/minecraft/class_363;)V
ARG 1 packet
METHOD method_1434 handleEntityAction (Lnet/minecraft/class_431;)V
ARG 1 packet
METHOD method_1435 handleUpdateSign (Lnet/minecraft/class_432;)V
ARG 1 packet
METHOD method_1436 handleDisconnect (Lnet/minecraft/class_433;)V
ARG 1 packet
METHOD method_1437 handleInvalidateState (Lnet/minecraft/class_434;)V
ARG 1 packet
METHOD method_1438 handleCollectItem (Lnet/minecraft/class_435;)V
ARG 1 packet
METHOD method_1439 handleChunk (Lnet/minecraft/class_6;)V
ARG 1 packet
METHOD method_1440 handlePlayerHealthUpdate (Lnet/minecraft/class_36;)V
METHOD method_1444 handleLevelTimeUpdate (Lnet/minecraft/class_156;)V
ARG 1 packet
METHOD method_1446 handleScreenOpen (Lnet/minecraft/class_201;)V
METHOD method_1441 handleLightningStrike (Lnet/minecraft/class_45;)V
ARG 1 packet
METHOD method_1442 handlePlaySound (Lnet/minecraft/class_85;)V
ARG 1 packet
METHOD method_1443 handleEntityVelocity (Lnet/minecraft/class_119;)V
ARG 1 packet
METHOD method_1444 handleTimeUpdate (Lnet/minecraft/class_156;)V
ARG 1 packet
METHOD method_1445 handleSlotUpdate (Lnet/minecraft/class_171;)V
ARG 1 packet
METHOD method_1446 handleOpenContainer (Lnet/minecraft/class_201;)V
ARG 1 packet
METHOD method_1447 handleEntityStatus (Lnet/minecraft/class_210;)V
ARG 1 packet
METHOD method_1448 handleMobSpawn (Lnet/minecraft/class_215;)V
ARG 1 packet
METHOD method_1449 handleStartSleeping (Lnet/minecraft/class_234;)V
ARG 1 packet
METHOD method_1450 handleInventoryUpdate (Lnet/minecraft/class_236;)V
ARG 1 packet
METHOD method_1451 handlePlayerSpawn (Lnet/minecraft/class_272;)V
ARG 1 packet
METHOD method_1452 handleUpdateFurnaceProgress (Lnet/minecraft/class_292;)V
ARG 1 packet
METHOD method_1453 handleItemEntitySpawn (Lnet/minecraft/class_295;)V
ARG 1 packet
METHOD method_1454 handleStartRiding (Lnet/minecraft/class_308;)V
ARG 1 packet
METHOD method_1455 handleIncreaseStat (Lnet/minecraft/class_319;)V
ARG 1 packet
METHOD method_1456 handleSpawnPosition (Lnet/minecraft/class_373;)V
ARG 1 packet
METHOD method_1457 handleEntityTeleport (Lnet/minecraft/class_374;)V
ARG 1 packet
METHOD method_1458 handleExplosion (Lnet/minecraft/class_382;)V
ARG 1 packet
METHOD method_1459 handleEntityEquipment (Lnet/minecraft/class_393;)V
ARG 1 packet
METHOD method_1460 handleEntityDeath (Lnet/minecraft/class_394;)V
ARG 1 packet
METHOD method_1461 handlePrepareChunk (Lnet/minecraft/class_403;)V
ARG 1 packet
METHOD method_1462 handleEntitySpawn (Lnet/minecraft/class_414;)V
ARG 1 packet
METHOD method_1467 handleUpdateRain (Lnet/minecraft/class_440;)V
METHOD method_1469 (Lnet/minecraft/class_161;)V
METHOD method_1463 handleTileChange (Lnet/minecraft/class_436;)V
ARG 1 packet
METHOD method_1464 handleBaseEntity (Lnet/minecraft/class_437;)V
ARG 1 packet
METHOD method_1465 handleEntityMetadata (Lnet/minecraft/class_438;)V
ARG 1 packet
METHOD method_1466 handleSpawnPainting (Lnet/minecraft/class_439;)V
ARG 1 packet
METHOD method_1467 handleNote (Lnet/minecraft/class_440;)V
ARG 1 packet
METHOD method_1468 handleMultiTileChange (Lnet/minecraft/class_441;)V
ARG 1 packet
METHOD method_1469 handleMapData (Lnet/minecraft/class_161;)V
ARG 1 packet
METHOD method_1470 error (Lnet/minecraft/class_169;)V
ARG 1 packet
METHOD method_1471 handleHandshake (Lnet/minecraft/class_281;)V
ARG 1 packet
METHOD method_1472 handleLoginRequest (Lnet/minecraft/class_118;)V
ARG 1 packet
METHOD method_1470 handle (Lnet/minecraft/class_169;)V
METHOD method_1472 handleHandshake (Lnet/minecraft/class_118;)V
METHOD method_1473 loseConnection (Ljava/lang/String;[Ljava/lang/Object;)V
METHOD method_1473 onSocketClosed (Ljava/lang/String;[Ljava/lang/Object;)V
ARG 1 reason
ARG 2 args
METHOD method_1474 isServerSide ()Z
3 changes: 2 additions & 1 deletion mappings/net/minecraft/packet/AbstractPacket.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ CLASS net/minecraft/class_169 net/minecraft/packet/AbstractPacket
METHOD method_799 create (I)Lnet/minecraft/class_169;
METHOD method_800 register (IZZLjava/lang/Class;)V
ARG 0 id
METHOD method_802 readString (Ljava/io/DataInputStream;I)Ljava/lang/String;
METHOD method_804 writeString (Ljava/lang/String;Ljava/io/DataOutputStream;)V
METHOD method_806 read (Ljava/io/DataInputStream;)V
ARG 1 in
METHOD method_807 write (Ljava/io/DataOutputStream;)V
ARG 1 out
METHOD method_804 writeString (Ljava/lang/String;Ljava/io/DataOutputStream;)V
METHOD method_808 handle (Lnet/minecraft/class_240;)V
ARG 1 handler
1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id0Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id102Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id103Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id104Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id105Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id106Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id10Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id11Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id12Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id130Packet.mapping

This file was deleted.

3 changes: 0 additions & 3 deletions mappings/net/minecraft/packet/Id131Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id13Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id16Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id19Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id200Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id20Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id21Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id22Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id24Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id255Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id25Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id27Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id28Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id29Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id30Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id31Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id32Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id33Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id34Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id38Packet.mapping

This file was deleted.

2 changes: 0 additions & 2 deletions mappings/net/minecraft/packet/Id40Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id50Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id51Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id52Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id53Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id61Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id6Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id70Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id71Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id7Packet.mapping

This file was deleted.

1 change: 0 additions & 1 deletion mappings/net/minecraft/packet/Id9Packet.mapping

This file was deleted.

4 changes: 4 additions & 0 deletions mappings/net/minecraft/packet/common/DisconnectPacket.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CLASS net/minecraft/class_433 net/minecraft/packet/common/DisconnectPacket
FIELD field_2322 reason Ljava/lang/String;
METHOD <init> (Ljava/lang/String;)V
ARG 1 reason
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLASS net/minecraft/class_268 net/minecraft/packet/common/KeepAlivePacket
2 changes: 0 additions & 2 deletions mappings/net/minecraft/packet/handshake/HandshakeC2S.mapping

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CLASS net/minecraft/class_281 net/minecraft/packet/handshake/HandshakePacket
FIELD field_1130 str Ljava/lang/String;
COMMENT In a C2S context this is the username while in an S2C context this is the connection hash.
METHOD <init> (Ljava/lang/String;)V
ARG 1 str
2 changes: 0 additions & 2 deletions mappings/net/minecraft/packet/login/ClientUsernameC2S.mapping

This file was deleted.

15 changes: 15 additions & 0 deletions mappings/net/minecraft/packet/login/LoginRequestPacket.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CLASS net/minecraft/class_118 net/minecraft/packet/login/LoginRequestPacket
FIELD field_1209 protocolVersion I
FIELD field_1210 username Ljava/lang/String;
FIELD field_1211 worldSeed J
COMMENT Server Only
FIELD field_1212 dimensionId B
COMMENT Server Only
METHOD <init> (Ljava/lang/String;I)V
ARG 1 username
ARG 2 protocolVersion
METHOD <init> (Ljava/lang/String;IJB)V
ARG 1 username
ARG 2 protocolVersion
ARG 3 worldSeed
ARG 5 dimensionId
6 changes: 6 additions & 0 deletions mappings/net/minecraft/packet/play/AnimationC2S.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLASS net/minecraft/class_305 net/minecraft/packet/play/AnimationC2S
FIELD field_1189 entityId I
FIELD field_1190 animationType I
METHOD <init> (Lnet/minecraft/class_57;I)V
ARG 1 entity
ARG 2 animationType
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CLASS net/minecraft/class_437 net/minecraft/packet/play/BaseEntityPacketS2C
FIELD field_1748 entityId I
FIELD field_1749 x B
FIELD field_1750 y B
FIELD field_1751 z B
FIELD field_1752 yaw B
FIELD field_1753 pitch B
FIELD field_1754 sendingLook Z
12 changes: 12 additions & 0 deletions mappings/net/minecraft/packet/play/BasePlayerPacket.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CLASS net/minecraft/class_184 net/minecraft/packet/play/BasePlayerPacket
FIELD field_636 x D
FIELD field_637 y D
FIELD field_638 z D
FIELD field_639 stance D
FIELD field_640 yaw F
FIELD field_641 pitch F
FIELD field_642 onGround Z
FIELD field_643 sendingPos Z
FIELD field_644 sendingLook Z
METHOD <init> (Z)V
ARG 1 onGround
4 changes: 4 additions & 0 deletions mappings/net/minecraft/packet/play/ChatMessageS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CLASS net/minecraft/class_340 net/minecraft/packet/play/ChatMessageS2C
FIELD field_1270 message Ljava/lang/String;
METHOD <init> (Ljava/lang/String;)V
ARG 1 message
16 changes: 16 additions & 0 deletions mappings/net/minecraft/packet/play/ChunkS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CLASS net/minecraft/class_6 net/minecraft/packet/play/ChunkS2C
FIELD field_10 sizeZ I
FIELD field_11 chunkData [B
FIELD field_12 regionSize I
FIELD field_5 x I
FIELD field_6 y I
FIELD field_7 z I
FIELD field_8 sizeX I
FIELD field_9 sizeY I
METHOD <init> (IIIIIILnet/minecraft/class_18;)V
ARG 1 x
ARG 2 y
ARG 3 z
ARG 4 sizeX
ARG 5 sizeY
ARG 6 sizeZ
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CLASS net/minecraft/class_276 net/minecraft/packet/play/CloseContainerPacket
FIELD field_1123 containerId I
METHOD <init> (I)V
ARG 1 containerId

This file was deleted.

6 changes: 6 additions & 0 deletions mappings/net/minecraft/packet/play/CollectItemC2S.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLASS net/minecraft/class_435 net/minecraft/packet/play/CollectItemC2S
FIELD field_2695 itemEntityId I
FIELD field_2696 collectorEntityId I
METHOD <init> (II)V
ARG 1 itemEntityId
ARG 2 collectorEntityId
11 changes: 11 additions & 0 deletions mappings/net/minecraft/packet/play/CreateExplosionS2C.mapping
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
CLASS net/minecraft/class_382 net/minecraft/packet/play/CreateExplosionS2C
FIELD field_1432 x D
FIELD field_1433 y D
FIELD field_1434 z D
FIELD field_1435 radius F
FIELD field_1436 records Ljava/util/Set;
METHOD <init> (DDDFLjava/util/Set;)V
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 radius
ARG 8 records

This file was deleted.

6 changes: 6 additions & 0 deletions mappings/net/minecraft/packet/play/EntityActionC2S.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLASS net/minecraft/class_431 net/minecraft/packet/play/EntityActionC2S
FIELD field_1712 entityId I
FIELD field_1713 action I
METHOD <init> (Lnet/minecraft/class_57;I)V
ARG 1 entity
ARG 2 action
4 changes: 4 additions & 0 deletions mappings/net/minecraft/packet/play/EntityDeathS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CLASS net/minecraft/class_394 net/minecraft/packet/play/EntityDeathS2C
FIELD field_1526 entityId I
METHOD <init> (I)V
ARG 1 entityId
9 changes: 9 additions & 0 deletions mappings/net/minecraft/packet/play/EntityEquipmentS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CLASS net/minecraft/class_393 net/minecraft/packet/play/EntityEquipmentS2C
FIELD field_1522 entityId I
FIELD field_1523 slot I
FIELD field_1524 itemId I
FIELD field_1525 itemDamage I
METHOD <init> (IILnet/minecraft/class_31;)V
ARG 1 entityId
ARG 2 slot
ARG 3 item
8 changes: 8 additions & 0 deletions mappings/net/minecraft/packet/play/EntityInteractC2S.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CLASS net/minecraft/class_1 net/minecraft/packet/play/EntityInteractC2S
FIELD field_1 userId I
FIELD field_2 entityId I
FIELD field_3 leftClick I
METHOD <init> (III)V
ARG 1 userId
ARG 2 entityId
ARG 3 leftClick
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CLASS net/minecraft/class_350 net/minecraft/packet/play/EntityLookAndRelativeMoveS2C
METHOD <init> (IBBBBB)V
ARG 1 entityId
ARG 2 x
ARG 3 y
ARG 4 z
ARG 5 yaw
ARG 6 pitch
5 changes: 5 additions & 0 deletions mappings/net/minecraft/packet/play/EntityLookS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CLASS net/minecraft/class_402 net/minecraft/packet/play/EntityLookS2C
METHOD <init> (IBB)V
ARG 1 entityId
ARG 2 yaw
ARG 3 pitch
7 changes: 7 additions & 0 deletions mappings/net/minecraft/packet/play/EntityMetadataS2C.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CLASS net/minecraft/class_438 net/minecraft/packet/play/EntityMetadataS2C
FIELD field_1975 entityId I
FIELD field_1976 metadata Ljava/util/List;
METHOD <init> (ILnet/minecraft/class_216;)V
ARG 1 entityId
ARG 2 tracker
METHOD method_1649 getMetadata ()Ljava/util/List;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLASS net/minecraft/class_418 net/minecraft/packet/play/EntityRelativeMoveS2C
METHOD <init> (IBBB)V
ARG 1 entityId
ARG 2 x
ARG 3 y
ARG 4 z
Loading

0 comments on commit a6066dd

Please sign in to comment.