summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.cpp
diff options
context:
space:
mode:
authordImrich <damian@haze.sk>2021-02-04 00:33:17 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-02-06 15:14:40 +0100
commit925f960ea2aeeea8eaeae94a8ef6602690b215c2 (patch)
treec865f2e046008670b8fc9e7985c8394a7590c97e /src/Protocol/Protocol_1_9.cpp
parentCreative mode hits immediately disappear boats (#5117) (diff)
downloadcuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.gz
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.bz2
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.lz
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.xz
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.zst
cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_9.cpp160
1 files changed, 81 insertions, 79 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index 67e920925..e2396ce0e 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -483,80 +483,81 @@ UInt32 cProtocol_1_9_0::GetPacketID(cProtocol::ePacketType a_Packet)
{
switch (a_Packet)
{
- case pktAttachEntity: return 0x40;
- case pktBlockAction: return 0x0a;
- case pktBlockBreakAnim: return 0x08;
- case pktBlockChange: return 0x0b;
- case pktBlockChanges: return 0x10;
- case pktCameraSetTo: return 0x36;
- case pktChatRaw: return 0x0f;
- case pktCollectEntity: return 0x49;
- case pktDestroyEntity: return 0x30;
- case pktDifficulty: return 0x0d;
- case pktDisconnectDuringGame: return 0x1a;
- case pktDisconnectDuringLogin: return 0x0;
- case pktDisplayObjective: return 0x38;
- case pktEditSign: return 0x2a;
- case pktEncryptionRequest: return 0x01;
- case pktEntityAnimation: return 0x06;
- case pktEntityEffect: return 0x4c;
- case pktEntityEquipment: return 0x3c;
- case pktEntityHeadLook: return 0x34;
- case pktEntityLook: return 0x27;
- case pktEntityMeta: return 0x39;
- case pktEntityProperties: return 0x4b;
- case pktEntityRelMove: return 0x25;
- case pktEntityRelMoveLook: return 0x26;
- case pktEntityStatus: return 0x1b;
- case pktEntityVelocity: return 0x3b;
- case pktExperience: return 0x3d;
- case pktExplosion: return 0x1c;
- case pktGameMode: return 0x1e;
- case pktHeldItemChange: return 0x37;
- case pktInventorySlot: return 0x16;
- case pktJoinGame: return 0x23;
- case pktKeepAlive: return 0x1f;
- case pktLeashEntity: return 0x3a;
- case pktLoginSuccess: return 0x02;
- case pktMapData: return 0x24;
- case pktParticleEffect: return 0x22;
- case pktPingResponse: return 0x01;
- case pktPlayerAbilities: return 0x2b;
- case pktPlayerList: return 0x2d;
- case pktPlayerMaxSpeed: return 0x4b;
- case pktPlayerMoveLook: return 0x2e;
- case pktPluginMessage: return 0x18;
- case pktRemoveEntityEffect: return 0x31;
- case pktResourcePack: return 0x32;
- case pktRespawn: return 0x33;
- case pktScoreboardObjective: return 0x3f;
- case pktSpawnExperienceOrb: return 0x01;
- case pktSpawnGlobalEntity: return 0x02;
- case pktSpawnObject: return 0x00;
- case pktSpawnOtherPlayer: return 0x05;
- case pktSpawnPainting: return 0x04;
- case pktSpawnPosition: return 0x43;
- case pktSoundEffect: return 0x19;
- case pktSoundParticleEffect: return 0x21;
- case pktSpawnMob: return 0x03;
- case pktStartCompression: return 0x03;
- case pktStatistics: return 0x07;
- case pktStatusResponse: return 0x00;
- case pktTabCompletionResults: return 0x0e;
- case pktTeleportEntity: return 0x4a;
- case pktTimeUpdate: return 0x44;
- case pktTitle: return 0x45;
- case pktUnloadChunk: return 0x1d;
- case pktUpdateBlockEntity: return 0x09;
- case pktUpdateHealth: return 0x3e;
- case pktUpdateScore: return 0x42;
- case pktUpdateSign: return 0x46;
- case pktUseBed: return 0x2f;
- case pktWeather: return 0x1e;
- case pktWindowClose: return 0x12;
- case pktWindowItems: return 0x14;
- case pktWindowOpen: return 0x13;
- case pktWindowProperty: return 0x15;
+ case pktAttachEntity: return 0x40;
+ case pktBlockAction: return 0x0a;
+ case pktBlockBreakAnim: return 0x08;
+ case pktBlockChange: return 0x0b;
+ case pktBlockChanges: return 0x10;
+ case pktCameraSetTo: return 0x36;
+ case pktChatRaw: return 0x0f;
+ case pktCollectEntity: return 0x49;
+ case pktDestroyEntity: return 0x30;
+ case pktDifficulty: return 0x0d;
+ case pktDisconnectDuringGame: return 0x1a;
+ case pktDisconnectDuringLogin: return 0x0;
+ case pktDisplayObjective: return 0x38;
+ case pktEditSign: return 0x2a;
+ case pktEncryptionRequest: return 0x01;
+ case pktEntityAnimation: return 0x06;
+ case pktEntityEffect: return 0x4c;
+ case pktEntityEquipment: return 0x3c;
+ case pktEntityHeadLook: return 0x34;
+ case pktEntityLook: return 0x27;
+ case pktEntityMeta: return 0x39;
+ case pktEntityProperties: return 0x4b;
+ case pktEntityRelMove: return 0x25;
+ case pktEntityRelMoveLook: return 0x26;
+ case pktEntityStatus: return 0x1b;
+ case pktEntityVelocity: return 0x3b;
+ case pktExperience: return 0x3d;
+ case pktExplosion: return 0x1c;
+ case pktGameMode: return 0x1e;
+ case pktHeldItemChange: return 0x37;
+ case pktInventorySlot: return 0x16;
+ case pktJoinGame: return 0x23;
+ case pktKeepAlive: return 0x1f;
+ case pktLeashEntity: return 0x3a;
+ case pktLoginSuccess: return 0x02;
+ case pktMapData: return 0x24;
+ case pktParticleEffect: return 0x22;
+ case pktPingResponse: return 0x01;
+ case pktPlayerAbilities: return 0x2b;
+ case pktPlayerList: return 0x2d;
+ case pktPlayerListHeaderFooter: return 0x48;
+ case pktPlayerMaxSpeed: return 0x4b;
+ case pktPlayerMoveLook: return 0x2e;
+ case pktPluginMessage: return 0x18;
+ case pktRemoveEntityEffect: return 0x31;
+ case pktResourcePack: return 0x32;
+ case pktRespawn: return 0x33;
+ case pktScoreboardObjective: return 0x3f;
+ case pktSpawnExperienceOrb: return 0x01;
+ case pktSpawnGlobalEntity: return 0x02;
+ case pktSpawnObject: return 0x00;
+ case pktSpawnOtherPlayer: return 0x05;
+ case pktSpawnPainting: return 0x04;
+ case pktSpawnPosition: return 0x43;
+ case pktSoundEffect: return 0x19;
+ case pktSoundParticleEffect: return 0x21;
+ case pktSpawnMob: return 0x03;
+ case pktStartCompression: return 0x03;
+ case pktStatistics: return 0x07;
+ case pktStatusResponse: return 0x00;
+ case pktTabCompletionResults: return 0x0e;
+ case pktTeleportEntity: return 0x4a;
+ case pktTimeUpdate: return 0x44;
+ case pktTitle: return 0x45;
+ case pktUnloadChunk: return 0x1d;
+ case pktUpdateBlockEntity: return 0x09;
+ case pktUpdateHealth: return 0x3e;
+ case pktUpdateScore: return 0x42;
+ case pktUpdateSign: return 0x46;
+ case pktUseBed: return 0x2f;
+ case pktWeather: return 0x1e;
+ case pktWindowClose: return 0x12;
+ case pktWindowItems: return 0x14;
+ case pktWindowOpen: return 0x13;
+ case pktWindowProperty: return 0x15;
// Unsupported packets
case pktUnlockRecipe:
@@ -2309,11 +2310,12 @@ UInt32 cProtocol_1_9_4::GetPacketID(cProtocol::ePacketType a_Packet)
{
switch (a_Packet)
{
- case pktCollectEntity: return 0x48;
- case pktEntityEffect: return 0x4b;
- case pktEntityProperties: return 0x4a;
- case pktPlayerMaxSpeed: return 0x4a;
- case pktTeleportEntity: return 0x49;
+ case pktCollectEntity: return 0x48;
+ case pktEntityEffect: return 0x4b;
+ case pktEntityProperties: return 0x4a;
+ case pktPlayerMaxSpeed: return 0x4a;
+ case pktPlayerListHeaderFooter: return 0x47;
+ case pktTeleportEntity: return 0x49;
default: return Super::GetPacketID(a_Packet);
}