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.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 '')
-rw-r--r-- | src/Protocol/Protocol.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h index c71b295ad..cad007f5c 100644 --- a/src/Protocol/Protocol.h +++ b/src/Protocol/Protocol.h @@ -14,6 +14,7 @@ #include "../Scoreboard.h" #include "../ByteBuffer.h" #include "../EffectID.h" +#include "../World.h" @@ -236,7 +237,6 @@ public: /** Returns the ServerID used for authentication through session.minecraft.net */ virtual AString GetAuthServerID(void) = 0; - protected: friend class cPacketizer; @@ -257,6 +257,9 @@ protected: /** Returns the protocol-specific packet ID given the protocol-agnostic packet enum. */ virtual UInt32 GetPacketID(ePacketType a_Packet) = 0; + /** Converts eMonsterType to protocol-specific mob types */ + virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) = 0; + /** A generic data-sending routine, all outgoing packet data needs to be routed through this so that descendants may override it. */ virtual void SendData(const char * a_Data, size_t a_Size) = 0; |