Files
MinecraftConsoles/Minecraft.World/DoorItem.h

21 lines
485 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
using namespace std;
#include "Item.h"
class Player;
class Material;
class Level;
class DoorItem : public Item
2026-03-01 12:16:08 +08:00
{
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);
2026-03-01 12:16:08 +08:00
static void place(Level *level, int x, int y, int z, int dir, Tile *tile);
};