diff options
author | Bond-009 <bond.009@outlook.com> | 2020-03-27 13:03:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 13:03:28 +0100 |
commit | ea386eaab12206e585e01720808dc37585569535 (patch) | |
tree | 7f26c0241b45cd2551b5d2ab5fc28d920130b0b7 /src/ChunkMap.h | |
parent | Merge #4552 (diff) | |
download | cuberite-ea386eaab12206e585e01720808dc37585569535.tar cuberite-ea386eaab12206e585e01720808dc37585569535.tar.gz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.bz2 cuberite-ea386eaab12206e585e01720808dc37585569535.tar.lz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.xz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.zst cuberite-ea386eaab12206e585e01720808dc37585569535.zip |
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r-- | src/ChunkMap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 3623400c8..5c0aa7688 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -29,6 +29,7 @@ class cDispenserEntity; class cDropperEntity; class cDropSpenserEntity; class cFurnaceEntity; +class cHopperEntity; class cNoteEntity; class cCommandBlockEntity; class cMobHeadEntity; @@ -53,6 +54,7 @@ using cDispenserCallback = cFunctionRef<bool(cDispenserEntity &)>; using cDropperCallback = cFunctionRef<bool(cDropperEntity &)>; using cDropSpenserCallback = cFunctionRef<bool(cDropSpenserEntity &)>; using cFurnaceCallback = cFunctionRef<bool(cFurnaceEntity &)>; +using cHopperCallback = cFunctionRef<bool(cHopperEntity &)>; using cNoteBlockCallback = cFunctionRef<bool(cNoteEntity &)>; using cCommandBlockCallback = cFunctionRef<bool(cCommandBlockEntity &)>; using cMobHeadCallback = cFunctionRef<bool(cMobHeadEntity &)>; @@ -302,6 +304,10 @@ public: Returns false if there's no furnace at those coords or callback returns true, returns true if found. */ bool DoWithFurnaceAt(int a_BlockX, int a_BlockY, int a_BlockZ, cFurnaceCallback a_Callback); // Lua-accessible + /** Calls the callback for the hopper at the specified coords. + Returns false if there's no hopper at those coords or callback returns true, returns true if found. */ + bool DoWithHopperAt(int a_BlockX, int a_BlockY, int a_BlockZ, cHopperCallback a_Callback); // Lua-accessible + /** Calls the callback for the noteblock at the specified coords. Returns false if there's no noteblock at those coords or callback returns true, returns true if found. */ bool DoWithNoteBlockAt(int a_BlockX, int a_BlockY, int a_BlockZ, cNoteBlockCallback a_Callback); // Lua-accessible |