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

28 lines
485 B
C
Raw Normal View History

2014-09-12 15:01:03 +00:00
#pragma once
#include "BlockHandler.h"
class cBlockSeaLanternHandler :
public cBlockHandler
{
2020-04-13 16:38:06 +00:00
using Super = cBlockHandler;
2014-09-12 15:01:03 +00:00
public:
using Super::Super;
private:
virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) const override
2014-09-12 15:01:03 +00: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 15:01:03 +00:00
}
} ;