From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/RecordingItem.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Minecraft.World/RecordingItem.h (limited to 'Minecraft.World/RecordingItem.h') diff --git a/Minecraft.World/RecordingItem.h b/Minecraft.World/RecordingItem.h new file mode 100644 index 00000000..9b184c6a --- /dev/null +++ b/Minecraft.World/RecordingItem.h @@ -0,0 +1,23 @@ +#pragma once +using namespace std; + +#include "Item.h" + +class RecordingItem : public Item +{ +public: + const std::wstring recording; + +public: // 4J Stu - Was protected in Java, but the can't access it where we need + RecordingItem(int id, const wstring& recording); + + //@Override + Icon *getIcon(int auxValue); + virtual bool useOn(shared_ptr itemInstance, shared_ptr player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false); + + virtual void appendHoverText(shared_ptr itemInstance, shared_ptr player, vector *lines, bool advanced, vector &unformattedStrings); + virtual const Rarity *getRarity(shared_ptr itemInstance); + + //@Override + void registerIcons(IconRegister *iconRegister); +}; \ No newline at end of file -- cgit v1.2.3