LeviLamina
Loading...
Searching...
No Matches
LegacyTradeableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class CompoundTag;
13class DataLoadHelper;
15class Player;
17struct ActorUniqueID;
18struct TradeTable;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mAddRecipeOnUpdate;
26 ::ll::TypedStorage<1, 1, bool> mResetLockedOnFirstTrade;
27 ::ll::TypedStorage<1, 1, bool> mWillingToBreed;
28 ::ll::TypedStorage<4, 4, int> mRiches;
29 ::ll::TypedStorage<4, 4, int> mTradeTier;
30 ::ll::TypedStorage<4, 4, int> mUpdateMerchantTimer;
31 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastPlayerTradeID;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::MerchantRecipeList>> mOffers;
33 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
34 ::ll::TypedStorage<8, 24, ::std::vector<int>> mTradeRecipeFirstTime;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI ::TradeTable* _getTradeTable(::Actor& owner);
46
47 MCAPI bool _refreshTrades(::Actor& owner);
48
49 MCAPI void _updateMaxTradeTier(::Actor& owner, int tradeTier);
50
51 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
52
53 MCAPI ::UpdateTradePacket createDataPacket(::Actor& owner, ::ContainerID containerID);
54
55 MCAPI bool getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
56
57 MCAPI void notifyTrade(::Actor& owner, int recipeIndex, int numTrades);
58
59 MCAPI ::LegacyTradeableComponent& operator=(::LegacyTradeableComponent&&);
60
61 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper&);
62
63 MCAPI void restockAllRecipes(::Actor& owner);
64
65 MCAPI void updateTradeTier(::Actor& owner);
66
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCAPI void $dtor();
74 // NOLINTEND
75};
Definition ActorInteraction.h:5
Definition Actor.h:104
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition LegacyTradeableComponent.h:21
Definition MerchantRecipeList.h:13
Definition Player.h:119
Definition UpdateTradePacket.h:20
Definition ActorUniqueID.h:5
Definition TradeTable.h:5