c53a0ba5f6
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
40 lines
467 B
C++
40 lines
467 B
C++
|
|
#pragma once
|
|
|
|
#include "BlockHandler.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockMyceliumHandler:
|
|
public cBlockHandler
|
|
{
|
|
public:
|
|
|
|
using cBlockHandler::cBlockHandler;
|
|
|
|
private:
|
|
|
|
// TODO: Add Mycel Spread
|
|
|
|
virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, const cEntity * a_Digger, const cItem * a_Tool) const override
|
|
{
|
|
return cItem(E_BLOCK_DIRT, 1, 0);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
|
|
{
|
|
UNUSED(a_Meta);
|
|
return 24;
|
|
}
|
|
} ;
|
|
|
|
|
|
|
|
|