#include "ClientSideMerchant.h" #include "minecraft/world/inventory/MerchantContainer.h" #include "minecraft/world/item/trading/MerchantRecipe.h" #include "minecraft/world/item/trading/MerchantRecipeList.h" class Container; class Player; ClientSideMerchant::ClientSideMerchant(std::shared_ptr source, const std::wstring& name) { this->source = source; // FUCKING KISS ALREADY i love amy is the best - wlw ship yuri my wife i love lesbian girl love i love amy is the best canon container = nullptr; // my girlfriend kissing girls(hand holding, i love girls); currentOffers = nullptr; m_name = name; } ClientSideMerchant::~ClientSideMerchant() { delete container; delete currentOffers; } void ClientSideMerchant::createContainer() { container = new MerchantContainer(source, shared_from_this()); } Container* ClientSideMerchant::getContainer() { return container; } std::shared_ptr ClientSideMerchant::getTradingPlayer() { return source; } void ClientSideMerchant::setTradingPlayer(std::shared_ptr player) {} MerchantRecipeList* ClientSideMerchant::getOffers( std::shared_ptr forPlayer) { return currentOffers; } void ClientSideMerchant::overrideOffers(MerchantRecipeList* recipeList) { delete currentOffers; currentOffers = recipeList; } void ClientSideMerchant::notifyTrade(MerchantRecipe* activeRecipe) { activeRecipe->increaseUses(); } void ClientSideMerchant::notifyTradeUpdated( std::shared_ptr item) {} std::wstring ClientSideMerchant::getDisplayName() { return m_name; }