Files
cuberite-2a/source/blocks/BlockEntity.h
T

32 lines
454 B
C++
Raw Normal View History

2012-07-15 20:36:34 +00:00
#pragma once
2012-07-15 20:36:34 +00:00
#include "Block.h"
2012-07-15 20:36:34 +00:00
class cBlockEntityHandler : public cBlockHandler
{
public:
2012-07-16 19:20:37 +00:00
cBlockEntityHandler(BLOCKTYPE a_BlockID)
: cBlockHandler(a_BlockID)
{
}
2012-08-19 10:44:19 +00:00
virtual void OnUse(cWorld * a_World, cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override
2012-07-16 19:20:37 +00:00
{
a_World->UseBlockEntity(a_Player, a_BlockX, a_BlockY, a_BlockZ);
2012-07-16 19:20:37 +00:00
}
2012-07-16 19:20:37 +00:00
virtual bool IsUseable() override
2012-07-15 20:36:34 +00:00
{
return true;
}
};