summaryrefslogblamecommitdiffstats
path: root/source/blocks/BlockEntity.cpp
blob: b34b01ee9ac35828cb4b36bbad58f737a829eb88 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}