diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-07-07 09:31:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 09:31:45 +0200 |
commit | 885d8287125439047ca2318f8e349b8da279e612 (patch) | |
tree | 2f54b688dba0f49b64544d3c1220a16a6936cd6f /src/Chunk.h | |
parent | Changed Lua plugins to only execute files ending in .lua (#3831) (diff) | |
download | cuberite-885d8287125439047ca2318f8e349b8da279e612.tar cuberite-885d8287125439047ca2318f8e349b8da279e612.tar.gz cuberite-885d8287125439047ca2318f8e349b8da279e612.tar.bz2 cuberite-885d8287125439047ca2318f8e349b8da279e612.tar.lz cuberite-885d8287125439047ca2318f8e349b8da279e612.tar.xz cuberite-885d8287125439047ca2318f8e349b8da279e612.tar.zst cuberite-885d8287125439047ca2318f8e349b8da279e612.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Chunk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index 3a0d37768..b5dcd7b91 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -30,6 +30,7 @@ class cServer; class cPlayer; class cChunkMap; class cBeaconEntity; +class cBedEntity; class cBrewingstandEntity; class cBoundingBox; class cChestEntity; @@ -53,6 +54,7 @@ class cSetChunkData; typedef std::list<cClientHandle *> cClientHandleList; typedef cItemCallback<cEntity> cEntityCallback; typedef cItemCallback<cBeaconEntity> cBeaconCallback; +typedef cItemCallback<cBedEntity> cBedCallback; typedef cItemCallback<cBrewingstandEntity> cBrewingstandCallback; typedef cItemCallback<cChestEntity> cChestCallback; typedef cItemCallback<cDispenserEntity> cDispenserCallback; @@ -317,6 +319,9 @@ public: /** Calls the callback for the brewingstand at the specified coords; returns false if there's no brewingstand at those coords, true if found */ bool DoWithBrewingstandAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBrewingstandCallback & a_Callback); // Lua-acessible + /** Calls the callback for the bed at the specified coords; returns false if there's no bed at those coords, true if found */ + bool DoWithBedAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBedCallback & a_Callback); // Lua-acessible + /** Calls the callback for the chest at the specified coords; returns false if there's no chest at those coords, true if found */ bool DoWithChestAt(int a_BlockX, int a_BlockY, int a_BlockZ, cChestCallback & a_Callback); // Lua-acessible |