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 virtual ~MerchantRecipeList() = default;
25
26 virtual ::MerchantRecipe* getRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, int selectionHint);
27
28 virtual void addIfNewOrBetter(::MerchantRecipe* toMatch);
29
30 virtual ::MerchantRecipe*
31 getMatchingRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
32
33 virtual ::MerchantRecipe* getMatchingRecipeFor(::MerchantRecipe const& recipe);
34
35 virtual void load(::CompoundTag const& tag);
36
37 virtual ::std::unique_ptr<::CompoundTag> createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI bool isRequiredItem(::ItemInstance const& offer, ::ItemInstance const& requiredItem);
44 // NOLINTEND
45
46public:
47 // virtual function thunks
48 // NOLINTBEGIN
49 MCAPI ::MerchantRecipe* $getRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, int selectionHint);
50
51 MCAPI void $addIfNewOrBetter(::MerchantRecipe* toMatch);
52
53 MCAPI ::MerchantRecipe*
54 $getMatchingRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
55
56 MCAPI ::MerchantRecipe* $getMatchingRecipeFor(::MerchantRecipe const& recipe);
57
58 MCAPI void $load(::CompoundTag const& tag);
59
60 MCAPI ::std::unique_ptr<::CompoundTag> $createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition CompoundTag.h:23
Definition ItemInstance.h:15
Definition MerchantRecipeList.h:13
static MCAPI void ** $vftable()
Definition MerchantRecipe.h:20
Definition SaveContext.h:5