diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-20 22:26:29 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-21 01:53:09 +0200 |
commit | 9a9079d3da006dc59ee2a8867f832d03211b1cd5 (patch) | |
tree | 5b5153d1cb806d9567706d09108c60bcc743770a /src/Protocol/Protocol_1_14.h | |
parent | Replace PowerData struct with PowerLevel (diff) | |
download | cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar.gz cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar.bz2 cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar.lz cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar.xz cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.tar.zst cuberite-9a9079d3da006dc59ee2a8867f832d03211b1cd5.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_14.h')
-rw-r--r-- | src/Protocol/Protocol_1_14.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Protocol/Protocol_1_14.h b/src/Protocol/Protocol_1_14.h index 8a80d0bee..54b9c080f 100644 --- a/src/Protocol/Protocol_1_14.h +++ b/src/Protocol/Protocol_1_14.h @@ -32,9 +32,6 @@ protected: virtual void SendBlockAction (int a_BlockX, int a_BlockY, int a_BlockZ, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType) override; virtual void SendBlockBreakAnim (UInt32 a_EntityID, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Stage) override; - virtual void SendBlockChange (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override; - template <auto Palette> void SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); - virtual void SendBlockChanges (int a_ChunkX, int a_ChunkZ, const sSetBlockVector & a_Changes) override; virtual void SendEditSign (int a_BlockX, int a_BlockY, int a_BlockZ) override; ///< Request the client to open up the sign editor for the sign (1.6+) virtual void SendLogin (const cPlayer & a_Player, const cWorld & a_World) override; virtual void SendPaintingSpawn (const cPainting & a_Painting) override; @@ -52,7 +49,8 @@ protected: virtual void HandlePacketUpdateSign(cByteBuffer & a_ByteBuffer) override; virtual std::pair<short, short> GetItemFromProtocolID(UInt32 a_ProtocolID) override; - virtual UInt32 GetProtocolIDFromItem(short a_ItemID, short a_ItemDamage) override; + virtual UInt32 GetProtocolBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta) override; + virtual UInt32 GetProtocolItemType(short a_ItemID, short a_ItemDamage) override; virtual UInt32 GetProtocolStatisticType(Statistic a_Statistic) override; virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) override {} |