1
0
cuberite-2a/src/Blocks/BlockLilypad.h

29 lines
394 B
C
Raw Normal View History

2014-03-23 22:32:45 +00:00
#pragma once
#include "BlockHandler.h"
#include "Entities/Pickup.h"
2014-03-23 22:32:45 +00:00
class cBlockLilypadHandler :
public cBlockHandler
2014-03-23 22:32:45 +00:00
{
public:
cBlockLilypadHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
2014-03-23 22:32:45 +00:00
{
}
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
// Reset meta to zero
a_Pickups.push_back(cItem(E_BLOCK_LILY_PAD, 1, 0));
}
2014-03-23 22:32:45 +00:00
};