Files
cuberite-2a/source/Blocks/BlockGlowstone.h
T

31 lines
427 B
C++
Raw Normal View History

2012-07-15 20:36:34 +00:00
#pragma once
#include "BlockHandler.h"
2012-07-15 20:36:34 +00:00
class cBlockGlowstoneHandler :
public cBlockHandler
2012-07-15 20:36:34 +00:00
{
public:
cBlockGlowstoneHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
2012-07-15 20:36:34 +00:00
{
}
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
2012-07-15 20:36:34 +00:00
{
// Reset meta to 0
// TODO: More drops?
a_Pickups.push_back(cItem(E_ITEM_GLOWSTONE_DUST, 1, 0));
2012-07-15 20:36:34 +00:00
}
} ;