summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-05 16:11:35 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-05 16:11:35 +0200
commitef1f371dab95522343b27c5bed65ffe655666294 (patch)
treef5f8d9c9a066b2218f7403bf6d38e8819845d0e1 /src/World.h
parentAdded assert to cProtocolRecognizer::GetPacketId. (#4001) (diff)
downloadcuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar.gz
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar.bz2
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar.lz
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar.xz
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.tar.zst
cuberite-ef1f371dab95522343b27c5bed65ffe655666294.zip
Diffstat (limited to '')
-rw-r--r--src/World.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index cbaf9cb95..b1a5e8d79 100644
--- a/src/World.h
+++ b/src/World.h
@@ -301,6 +301,10 @@ public:
Note: Only loaded chunks are considered. */
bool HasEntity(UInt32 a_UniqueID);
+ /** Removes the entity from the world.
+ Returns an owning reference to the found entity. */
+ OwnedEntity RemoveEntity(cEntity & a_Entity);
+
/** Calls the callback for each entity in the entire world; returns true if all entities processed, false if the callback aborted by returning true */
bool ForEachEntity(cEntityCallback & a_Callback); // Exported in ManualBindings.cpp