From e8366993ce3f1cc0c2c6cde1d133773d1f23c474 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 6 Aug 2012 20:10:16 +0000 Subject: A bit of cleanup and documentation around the UI window handling git-svn-id: http://mc-server.googlecode.com/svn/trunk@716 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/blocks/BlockEntity.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'source/blocks/BlockEntity.h') diff --git a/source/blocks/BlockEntity.h b/source/blocks/BlockEntity.h index c7b8b0859..085b65158 100644 --- a/source/blocks/BlockEntity.h +++ b/source/blocks/BlockEntity.h @@ -1,7 +1,12 @@ + #pragma once + #include "Block.h" + + + class cBlockEntityHandler : public cBlockHandler { public: @@ -9,14 +14,18 @@ public: : cBlockHandler(a_BlockID) { } - virtual void OnClick(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z) override + + virtual void OnClick(cWorld * a_World, cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override { - a_World->UseBlockEntity(a_Player, a_X, a_Y, a_Z); + a_World->UseBlockEntity(a_Player, a_BlockX, a_BlockY, a_BlockZ); } + virtual bool IsUseable() override { return true; } - - -}; \ No newline at end of file +}; + + + + -- cgit v1.2.3