summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-08-05 01:43:54 +0200
committerMattes D <github@xoft.cz>2019-08-05 21:42:54 +0200
commit8212f163b5429973cc63eb4c8b0073b342f09914 (patch)
treec4c332bdef7c31063f256e4564ff73681d53c2c5 /src/Root.h
parentBlockTypeRegistry: Added hint manipulation (diff)
downloadcuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar.gz
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar.bz2
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar.lz
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar.xz
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.tar.zst
cuberite-8212f163b5429973cc63eb4c8b0073b342f09914.zip
Diffstat (limited to 'src/Root.h')
-rw-r--r--src/Root.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Root.h b/src/Root.h
index aad7ccb14..169a78194 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -7,6 +7,7 @@
#include "Defines.h"
#include "FunctionRef.h"
#include "RankManager.h"
+#include "BlockTypeRegistry.h"
@@ -88,6 +89,9 @@ public:
cFurnaceRecipe * GetFurnaceRecipe (void) { return m_FurnaceRecipe; } // Exported in ManualBindings.cpp with quite a different signature
cBrewingRecipes * GetBrewingRecipes (void) { return m_BrewingRecipes.get(); } // Exported in ManualBindings.cpp
+ /** Returns the (read-write) storage for registered block types. */
+ BlockTypeRegistry & GetBlockTypeRegistry() { return m_BlockTypeRegistry; }
+
/** Returns the number of ticks for how long the item would fuel a furnace. Returns zero if not a fuel */
static int GetFurnaceFuelBurnTime(const cItem & a_Fuel); // tolua_export
@@ -227,6 +231,9 @@ private:
cHTTPServer m_HTTPServer;
+ /** The storage for all registered block types. */
+ BlockTypeRegistry m_BlockTypeRegistry;
+
void LoadGlobalSettings();