diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-04-20 21:46:04 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-01 00:04:56 +0200 |
commit | 0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d (patch) | |
tree | afe3041898d51e53ca693861564792e0d828774e /src/Protocol/Protocol_1_9.h | |
parent | NBT: Dynamic list-max-count protection. (#4697) (diff) | |
download | cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.gz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.bz2 cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.lz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.xz cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.tar.zst cuberite-0b9b7bc1a8d5cf6f92b802dc376a189ef066e62d.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_9.h')
-rw-r--r-- | src/Protocol/Protocol_1_9.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Protocol/Protocol_1_9.h b/src/Protocol/Protocol_1_9.h index d5b5d1f5a..b4e945c1e 100644 --- a/src/Protocol/Protocol_1_9.h +++ b/src/Protocol/Protocol_1_9.h @@ -54,15 +54,11 @@ public: virtual void SendLeashEntity (const cEntity & a_Entity, const cEntity & a_EntityLeashedTo) override; virtual void SendMapData (const cMap & a_Map, int a_DataStartX, int a_DataStartY) override; virtual void SendPaintingSpawn (const cPainting & a_Painting) override; - virtual void SendPickupSpawn (const cPickup & a_Pickup) override; virtual void SendPlayerMaxSpeed (void) override; virtual void SendPlayerMoveLook (void) override; virtual void SendPlayerSpawn (const cPlayer & a_Player) override; virtual void SendSoundEffect (const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override; - virtual void SendSpawnFallingBlock (const cFallingBlock & a_FallingBlock) override; virtual void SendSpawnMob (const cMonster & a_Mob) override; - virtual void SendSpawnObject (const cEntity & a_Entity, char a_ObjectType, int a_ObjectData) override; - virtual void SendSpawnVehicle (const cEntity & a_Vehicle, char a_VehicleType, char a_VehicleSubType) override; virtual void SendTeleportEntity (const cEntity & a_Entity) override; virtual void SendThunderbolt (int a_BlockX, int a_BlockY, int a_BlockZ) override; virtual void SendUnleashEntity (const cEntity & a_Entity) override; @@ -127,6 +123,9 @@ protected: /** Writes the entity properties for the specified entity, including the Count field. */ virtual void WriteEntityProperties(cPacketizer & a_Pkt, const cEntity & a_Entity) override; + /** Writes the entity type and entity-dependent data into a packet structure required for the entity to initially spawn. */ + virtual void WriteEntitySpawn(cPacketizer & a_Pkt, const cEntity & a_Entity, const UInt8 a_ObjectType, const Int32 a_ObjectData) override; + /** Writes the block entity data for the specified block entity into the packet. */ virtual void WriteBlockEntity(cPacketizer & a_Pkt, const cBlockEntity & a_BlockEntity) override; |