summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();