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 MCNAPI bool isRequiredItem(::ItemInstance const& offer, ::ItemInstance const& requiredItem);
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI ::MerchantRecipe* $getRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, int selectionHint);
57
58 MCNAPI void $addIfNewOrBetter(::MerchantRecipe* toMatch);
59
60 MCNAPI ::MerchantRecipe*
61 $getMatchingRecipeFor(::ItemInstance const& buyA, ::ItemInstance const& buyB, ::ItemInstance const& sell);
62
63 MCNAPI ::MerchantRecipe* $getMatchingRecipeFor(::MerchantRecipe const& recipe);
64
65 MCNAPI void $load(::CompoundTag const& tag);
66
67 MCNAPI ::std::unique_ptr<::CompoundTag> $createTag(bool includeNetInfo, ::SaveContext const& saveContext) const;
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition CompoundTag.h:13
Definition ItemInstance.h:16
Definition MerchantRecipeList.h:13
MCAPI void $load(::CompoundTag const &tag)
MCAPI void $addIfNewOrBetter(::MerchantRecipe *toMatch)
MCAPI::MerchantRecipe * $getRecipeFor(::ItemInstance const &buyA, ::ItemInstance const &buyB, int selectionHint)
MCAPI::MerchantRecipe * $getMatchingRecipeFor(::MerchantRecipe const &recipe)
MCAPI ::std::unique_ptr<::CompoundTag > $createTag(bool includeNetInfo, ::SaveContext const &saveContext) const
MCAPI::MerchantRecipe * $getMatchingRecipeFor(::ItemInstance const &buyA, ::ItemInstance const &buyB, ::ItemInstance const &sell)
MCAPI bool isRequiredItem(::ItemInstance const &offer, ::ItemInstance const &requiredItem)
static MCAPI void ** $vftable()
Definition MerchantRecipe.h:20
Definition SaveContext.h:5