LeviLamina
Loading...
Searching...
No Matches
MerchantRecipeList.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CompoundTag;
8class ItemInstance;
10class SaveContext;
11// clang-format on
12
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 24, ::std::vector<::MerchantRecipe>> mRecipeList;
18 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mTierExpRequirements;
19 // NOLINTEND
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 0
25 virtual ~MerchantRecipeList() = default;
26
27 // vIndex: 1
28 virtual ::MerchantRecipe* getRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, int selectionHint);
29
30 // vIndex: 2
31 virtual void addIfNewOrBetter(::MerchantRecipe* toMatch);
32
33 // vIndex: 4
34 virtual ::MerchantRecipe*
35 getMatchingRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
36
37 // vIndex: 3
38 virtual ::MerchantRecipe* getMatchingRecipeFor(::MerchantRecipe const& recipe);
39
40 // vIndex: 5
41 virtual void load(::CompoundTag const& tag);
42
43 // vIndex: 6
44 virtual ::std::unique_ptr<::CompoundTag> createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI bool isRequiredItem(::ItemInstance const& offer, ::ItemInstance const& requiredItem);
51 // NOLINTEND
52
53public:
54 // destructor thunk
55 // NOLINTBEGIN
56
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI ::MerchantRecipe* $getRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, int selectionHint);
63
64 MCAPI void $addIfNewOrBetter(::MerchantRecipe* toMatch);
65
66 MCAPI ::MerchantRecipe*
67 $getMatchingRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
68
69 MCAPI ::MerchantRecipe* $getMatchingRecipeFor(::MerchantRecipe const& recipe);
70
71 MCAPI void $load(::CompoundTag const& tag);
72
73 MCAPI ::std::unique_ptr<::CompoundTag> $createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition CompoundTag.h:13
Definition ItemInstance.h:16
Definition MerchantRecipeList.h:13
Definition MerchantRecipe.h:20
Definition SaveContext.h:5