mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-01 07:13:41 +00:00
31 lines
932 B
C++
31 lines
932 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(
|
|
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);
|
|
|
|
private:
|
|
std::shared_ptr<HangingEntity> createEntity(
|
|
Level* level, int x, int y, int z, int dir,
|
|
int auxValue); // 4J Stu added auxValue param
|
|
|
|
public:
|
|
virtual void appendHoverText(std::shared_ptr<ItemInstance> itemInstance,
|
|
std::shared_ptr<Player> player,
|
|
std::vector<HtmlString>* lines, bool advanced);
|
|
};
|