From 8212f163b5429973cc63eb4c8b0073b342f09914 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 5 Aug 2019 01:43:54 +0200 Subject: Register vanilla blocks in BlockTypeRegistry. --- src/Root.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Root.h') 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(); -- cgit v1.2.3