diff options
author | Mat <mail@mathias.is> | 2020-03-29 17:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 17:54:37 +0200 |
commit | 31ace87d285d14f8799bc45ab5c812822854d0dd (patch) | |
tree | ee891fd5ec2b9d391f803e3d9dfed541df53179d /src/Protocol/Protocol_1_9.h | |
parent | Fix build on Clang (diff) | |
download | cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.gz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.bz2 cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.lz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.xz cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.tar.zst cuberite-31ace87d285d14f8799bc45ab5c812822854d0dd.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_9.h')
-rw-r--r-- | src/Protocol/Protocol_1_9.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_9.h b/src/Protocol/Protocol_1_9.h index 793367734..b6b4ddffa 100644 --- a/src/Protocol/Protocol_1_9.h +++ b/src/Protocol/Protocol_1_9.h @@ -21,6 +21,7 @@ Declares the 1.9 protocol classes: #include "Protocol.h" #include "../ByteBuffer.h" +#include "../World.h" #include "../mbedTLS++/AesCfb128Decryptor.h" #include "../mbedTLS++/AesCfb128Encryptor.h" @@ -174,6 +175,9 @@ protected: /** Get the packet ID for a given packet */ virtual UInt32 GetPacketID(ePacketType a_Packet) override; + /** Converts eMonsterType to protocol-specific mob IDs */ + virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) override; + /** Reads and handles the packet. The packet length and type have already been read. Returns true if the packet was understood, false if it was an unknown packet. */ virtual bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType); |