Files
LegacyMultiplayerProject/Minecraft.World/HangingEntityItem.h
DrPerkyLegit 5b19646cc6 init
2026-06-23 01:27:12 -04:00

22 lines
579 B
C++

#pragma once
#include "item.h"
class HangingEntity;
class HangingEntityItem : public Item
{
private:
//final Class<? extends HangingEntity> clazz;
eINSTANCEOF eType;
public:
HangingEntityItem(int id, eINSTANCEOF eClassType);
virtual bool useOn(shared_ptr<ItemInstance> instance, 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);
private:
shared_ptr<HangingEntity> createEntity(Level *level, int x, int y, int z, int dir) ;
};