summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockEnderchest.h
blob: b40deb1f79e6353cd0b6d0e74f7436ea8fa45509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

#pragma once

#include "BlockHandler.h"





class cBlockEnderchestHandler :
	public cBlockHandler
{
public:
	cBlockEnderchestHandler(BLOCKTYPE a_BlockType)
		: cBlockHandler(a_BlockType)
	{
	}

	virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
	{
		//todo: Drop Ender Chest if using silk touch pickaxe
		a_Pickups.push_back(cItem(E_BLOCK_OBSIDIAN, 8, 0));
	}
} ;