LeviLamina
Loading...
Searching...
No Matches
MerchantRecipe.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/inventory/network/TypedServerNetId.h"
5#include "mc/world/inventory/network/crafting/RecipeNetIdTag.h"
6#include "mc/world/item/ItemInstance.h"
7
8// auto generated inclusion list
9#include "mc/world/inventory/network/TypedServerNetId.h"
10
11// auto generated forward declare list
12// clang-format off
13class BaseGameVersion;
14class CompoundTag;
15class ItemInstance;
16class SaveContext;
17struct RecipeNetIdTag;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyA;
25 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyB;
26 ::ll::TypedStorage<8, 128, ::ItemInstance> mSell;
27 ::ll::TypedStorage<4, 4, int> mTier;
28 ::ll::TypedStorage<4, 4, int> mUses;
29 ::ll::TypedStorage<4, 4, int> mMaxUses;
30 ::ll::TypedStorage<4, 4, uint> mTraderExp;
31 ::ll::TypedStorage<1, 1, bool> mRewardExp;
32 ::ll::TypedStorage<4, 4, int> mDemand;
33 ::ll::TypedStorage<4, 4, int> mBuyCountA;
34 ::ll::TypedStorage<4, 4, int> mBuyCountB;
35 ::ll::TypedStorage<4, 4, float> mPriceMultiplierA;
36 ::ll::TypedStorage<4, 4, float> mPriceMultiplierB;
37 ::ll::TypedStorage<4, 4, ::RecipeNetId> mRecipeNetId;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI MerchantRecipe(::MerchantRecipe const&);
44
45 MCAPI explicit MerchantRecipe(::CompoundTag const* tag);
46
48
49 MCAPI MerchantRecipe(::ItemInstance const& buy, ::ItemInstance const& sell);
50
51 MCAPI MerchantRecipe(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
52
53 MCAPI void calculateDemandPrices(
54 int minorPositiveGossip,
55 int majorPositiveGossip,
56 int nearbyCuredDiscount,
57 int heroEffectAmplifier,
58 bool hasHeroOfTheVillage,
59 ::BaseGameVersion baseGameVersion
60 );
61
62 MCAPI ::std::unique_ptr<::CompoundTag> createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
63
64 MCAPI bool isSame(::MerchantRecipe const& lhs) const;
65
66 MCAPI void legacyCalculateDemandPrices(int lowTierDiscount, int highTierDiscount);
67
68 MCAPI void load(::CompoundTag const* tag);
69
70 MCAPI ::MerchantRecipe& operator=(::MerchantRecipe const&);
71
72 MCAPI ~MerchantRecipe();
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCFOLD void* $ctor(::MerchantRecipe const&);
79
80 MCAPI void* $ctor(::CompoundTag const* tag);
81
82 MCAPI void* $ctor(::MerchantRecipe&&);
83
84 MCAPI void* $ctor(::ItemInstance const& buy, ::ItemInstance const& sell);
85
86 MCAPI void* $ctor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94};
Definition BaseGameVersion.h:13
Definition CompoundTag.h:13
Definition ItemInstance.h:16
Definition MerchantRecipe.h:20
Definition SaveContext.h:5
Definition RecipeNetIdTag.h:5