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/Blocks/BlockHandler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Blocks/BlockHandler.h') diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index 7fbc15ff5..d077442c9 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -16,6 +16,7 @@ class cBlockPluginInterface; class cChunkInterface; class cWorldInterface; class cItems; +class BlockTypeRegistry; @@ -176,3 +177,9 @@ protected: +namespace Temporary +{ + /** Registers all the BlockHandler descendants in the specified registry. + Temporary, since this will later be performed in a plugin that provides the vanilla blocks. */ + void RegisterAllBlockHandlers(BlockTypeRegistry & aRegistry); +}; -- cgit v1.2.3