aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/DoorItem.h
blob: 843c768bf3370b5c797978476da37615f705f5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
using namespace std;

#include "Item.h"

class Player;
class Material;
class Level;

class DoorItem : public Item 
{
private:
	Material *material;

public:
	DoorItem(int id, Material *material);

	virtual bool useOn(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false);
	static void place(Level *level, int x, int y, int z, int dir, Tile *tile);
};