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

37 lines
532 B
C
Raw Normal View History

2014-09-12 11:01:03 -04:00
#pragma once
#include "BlockHandler.h"
class cBlockSeaLanternHandler :
public cBlockHandler
{
2020-04-13 12:38:06 -04:00
using Super = cBlockHandler;
2014-09-12 11:01:03 -04:00
public:
cBlockSeaLanternHandler(BLOCKTYPE a_BlockType):
2020-04-13 12:38:06 -04:00
Super(a_BlockType)
2014-09-12 11:01:03 -04:00
{
}
virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override
2014-09-12 11:01:03 -04:00
{
// Reset meta to 0
// TODO: Handle the Fortune enchantment
return cItem(E_ITEM_PRISMARINE_CRYSTALS, GetRandomProvider().RandInt<char>(2, 3), 0);
2014-09-12 11:01:03 -04:00
}
} ;