diff options
author | andrew <xdotftw@gmail.com> | 2014-03-25 19:59:33 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-25 19:59:33 +0100 |
commit | 2e28c09770a937b253680d7f62b9b2f4c8f4670c (patch) | |
tree | 60bc0e8da8940df8acd338692ac8a95327b2347e /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Plugins can set flying speed. (diff) | |
download | cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.gz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.bz2 cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.lz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.xz cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.tar.zst cuberite-2e28c09770a937b253680d7f62b9b2f4c8f4670c.zip |
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index acca96ba8..9a14d7152 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -23,6 +23,7 @@ #include "../BlockEntities/FlowerPotEntity.h" #include "../Entities/Entity.h" +#include "../Entities/EnderCrystal.h" #include "../Entities/FallingBlock.h" #include "../Entities/Boat.h" #include "../Entities/Minecart.h" @@ -335,6 +336,17 @@ void cNBTChunkSerializer::AddBoatEntity(cBoat * a_Boat) +void cNBTChunkSerializer::AddEnderCrystalEntity(cEnderCrystal * a_EnderCrystal) +{ + m_Writer.BeginCompound(""); + AddBasicEntity(a_EnderCrystal, "EnderCrystal"); + m_Writer.EndCompound(); +} + + + + + void cNBTChunkSerializer::AddFallingBlockEntity(cFallingBlock * a_FallingBlock) { m_Writer.BeginCompound(""); @@ -729,6 +741,7 @@ void cNBTChunkSerializer::Entity(cEntity * a_Entity) switch (a_Entity->GetEntityType()) { case cEntity::etBoat: AddBoatEntity ((cBoat *) a_Entity); break; + case cEntity::etEnderCrystal: AddEnderCrystalEntity((cEnderCrystal *) a_Entity); break; case cEntity::etFallingBlock: AddFallingBlockEntity((cFallingBlock *) a_Entity); break; case cEntity::etMinecart: AddMinecartEntity ((cMinecart *) a_Entity); break; case cEntity::etMonster: AddMonsterEntity ((cMonster *) a_Entity); break; |