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#include "mc/world/item/ItemInstance.h"
11
12// auto generated forward declare list
13// clang-format off
14class BaseGameVersion;
15class CompoundTag;
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 // prevent constructor by default
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI MerchantRecipe(::MerchantRecipe const&);
48
49 MCAPI explicit MerchantRecipe(::CompoundTag const* tag);
50
52
53 MCAPI MerchantRecipe(::ItemInstance const& buy, ::ItemInstance const& sell);
54
55 MCAPI MerchantRecipe(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
56
57 MCAPI void calculateDemandPrices(
58 int minorPositiveGossip,
59 int majorPositiveGossip,
60 int nearbyCuredDiscount,
61 int heroEffectAmplifier,
62 bool hasHeroOfTheVillage,
63 ::BaseGameVersion baseGameVersion
64 );
65
66 MCAPI ::std::unique_ptr<::CompoundTag> createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
67
68 MCAPI bool isSame(::MerchantRecipe const& lhs) const;
69
70 MCAPI void legacyCalculateDemandPrices(int lowTierDiscount, int highTierDiscount);
71
72 MCAPI void load(::CompoundTag const* tag);
73
74 MCAPI ::MerchantRecipe& operator=(::MerchantRecipe const&);
75
76 MCAPI ~MerchantRecipe();
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCFOLD void* $ctor(::MerchantRecipe const&);
83
84 MCAPI void* $ctor(::CompoundTag const* tag);
85
86 MCAPI void* $ctor(::MerchantRecipe&&);
87
88 MCAPI void* $ctor(::ItemInstance const& buy, ::ItemInstance const& sell);
89
90 MCAPI void* $ctor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCAPI void $dtor();
97 // NOLINTEND
98};
Definition BaseGameVersion.h:8
Definition CompoundTag.h:13
Definition ItemInstance.h:16
Definition MerchantRecipe.h:20
Definition SaveContext.h:5
Definition RecipeNetIdTag.h:5