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/ClientSideMerchant.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Minecraft.World/ClientSideMerchant.h (limited to 'Minecraft.World/ClientSideMerchant.h') diff --git a/Minecraft.World/ClientSideMerchant.h b/Minecraft.World/ClientSideMerchant.h new file mode 100644 index 00000000..33f0c0b1 --- /dev/null +++ b/Minecraft.World/ClientSideMerchant.h @@ -0,0 +1,30 @@ +#pragma once + +#include "Merchant.h" + +class MerchantContainer; +class MerchantRecipeList; +class MerchantRecipe; + +class ClientSideMerchant : public Merchant, public enable_shared_from_this +{ +private: + MerchantContainer *container; + shared_ptr source; + MerchantRecipeList *currentOffers; + int m_name; + +public: + ClientSideMerchant(shared_ptr source, int name); + ~ClientSideMerchant(); + + void createContainer(); // 4J Added + Container *getContainer(); + shared_ptr getTradingPlayer(); + void setTradingPlayer(shared_ptr player); + MerchantRecipeList *getOffers(shared_ptr forPlayer); + void overrideOffers(MerchantRecipeList *recipeList); + void notifyTrade(MerchantRecipe *activeRecipe); + void notifyTradeUpdated(shared_ptr item); + int getDisplayName(); +}; \ No newline at end of file -- cgit v1.2.3