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

29 lines
394 B
C
Raw Normal View History

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