summaryrefslogtreecommitdiffstats
path: root/source/blocks/BlockEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/blocks/BlockEntity.cpp')
-rw-r--r--source/blocks/BlockEntity.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blocks/BlockEntity.cpp b/source/blocks/BlockEntity.cpp
new file mode 100644
index 000000000..b34b01ee9
--- /dev/null
+++ b/source/blocks/BlockEntity.cpp
@@ -0,0 +1,15 @@
+#include "Globals.h"
+#include "BlockEntity.h"
+#include "../cItem.h"
+#include "../cPlayer.h"
+#include "../cWorld.h"
+
+cBlockEntityHandler::cBlockEntityHandler(BLOCKTYPE a_BlockID)
+ : cBlockHandler(a_BlockID)
+{
+}
+
+void cBlockEntityHandler::OnClick(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
+{
+ a_World->UseBlockEntity(a_Player, a_X, a_Y, a_Z);
+}