Files
MinecraftConsoles/Minecraft.World/HangingEntityItem.h

22 lines
591 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "item.h"
class HangingEntity;
class HangingEntityItem : public Item
2026-03-01 12:16:08 +08:00
{
private:
//final Class<? extends HangingEntity> clazz;
eINSTANCEOF eType;
public:
HangingEntityItem(int id, eINSTANCEOF eClassType);
virtual bool useOn(std::shared_ptr<ItemInstance> instance, std::shared_ptr<Player> player, Level *level, int xt, int yt, int zt, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly);//, float clickX, float clickY, float clickZ);
2026-03-01 12:16:08 +08:00
private:
std::shared_ptr<HangingEntity> createEntity(Level *level, int x, int y, int z, int dir) ;
2026-03-01 12:16:08 +08:00
};