Files
cuberite-2a/src/Blocks/BlockBrewingStand.h
T

39 lines
663 B
C++
Raw Normal View History

2013-07-29 12:13:03 +01:00
#pragma once
2015-09-24 10:48:33 +02:00
#include "BlockEntity.h"
2013-07-29 12:13:03 +01:00
#include "BlockHandler.h"
2015-09-24 10:48:33 +02:00
#include "MetaRotator.h"
2013-07-29 12:13:03 +01:00
class cBlockBrewingStandHandler :
2015-09-24 10:48:33 +02:00
public cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04>
2013-07-29 12:13:03 +01:00
{
public:
cBlockBrewingStandHandler(BLOCKTYPE a_BlockType)
2015-09-24 10:48:33 +02:00
: cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04>(a_BlockType)
2013-07-29 12:13:03 +01:00
{
}
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
a_Pickups.push_back(cItem(E_ITEM_BREWING_STAND, 1, 0));
}
virtual bool IsUseable() override
{
return true;
}
2015-06-30 15:50:15 +01:00
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
{
UNUSED(a_Meta);
return 6;
}
2013-07-29 12:13:03 +01:00
} ;