summaryrefslogtreecommitdiffstats
path: root/source/blocks
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-26 19:50:42 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-26 19:50:42 +0200
commit6ad8553a3a9095bd5a8c25085fa0bb209d411048 (patch)
treec6ba74fd34eb0f599e2037ac120bfae30314f0dd /source/blocks
parentRemoved old makefile; use GNUmakefile instead (diff)
downloadcuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar.gz
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar.bz2
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar.lz
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar.xz
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.tar.zst
cuberite-6ad8553a3a9095bd5a8c25085fa0bb209d411048.zip
Diffstat (limited to 'source/blocks')
-rw-r--r--source/blocks/Block.cpp3
-rw-r--r--source/blocks/BlockNote.h13
2 files changed, 16 insertions, 0 deletions
diff --git a/source/blocks/Block.cpp b/source/blocks/Block.cpp
index 400727e80..2fa1ba718 100644
--- a/source/blocks/Block.cpp
+++ b/source/blocks/Block.cpp
@@ -38,6 +38,7 @@
#include "BlockMelon.h"
#include "BlockIce.h"
#include "BlockOre.h"
+#include "BlockNote.h"
bool cBlockHandler::m_HandlerInitialized = false;
cBlockHandler *cBlockHandler::m_BlockHandler[256];
@@ -158,6 +159,8 @@ cBlockHandler *cBlockHandler::CreateBlockHandler(BLOCKTYPE a_BlockID)
return new cBlockStoneHandler(a_BlockID);
case E_BLOCK_MELON:
return new cBlockMelonHandler(a_BlockID);
+ case E_BLOCK_NOTE_BLOCK:
+ return new cBlockNoteHandler(a_BlockID);
default:
return new cBlockHandler(a_BlockID);
break;
diff --git a/source/blocks/BlockNote.h b/source/blocks/BlockNote.h
new file mode 100644
index 000000000..2c439f623
--- /dev/null
+++ b/source/blocks/BlockNote.h
@@ -0,0 +1,13 @@
+#pragma once
+#include "Block.h"
+#include "BlockEntity.h"
+
+class cBlockNoteHandler : public cBlockEntityHandler
+{
+public:
+ cBlockNoteHandler(BLOCKTYPE a_BlockID)
+ : cBlockEntityHandler(a_BlockID)
+ {
+ }
+
+};