LeviLamina
Loading...
Searching...
No Matches
LootItemMatchToolCondition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/predicates/LootItemCondition.h"
7
8// auto generated forward declare list
9// clang-format off
10class Item;
11class ItemDescriptor;
13class Random;
14struct IntRange;
15namespace Json { class Value; }
16// clang-format on
17
19public:
20 // LootItemMatchToolCondition inner types declare
21 // clang-format off
22 struct EnchantInfo;
23 // clang-format on
24
25 // LootItemMatchToolCondition inner types define
26 struct EnchantInfo {
27 public:
28 // member variables
29 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 EnchantInfo& operator=(EnchantInfo const&);
39 };
40
41public:
42 // member variables
43 // NOLINTBEGIN
52 // NOLINTEND
53
54public:
55 // prevent constructor by default
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 // vIndex: 0
64 virtual ~LootItemMatchToolCondition() /*override*/;
65
66 // vIndex: 1
67 virtual bool applies(::Random& random, ::LootTableContext& context) /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
74 ::IntRange count,
75 ::IntRange durability,
76 ::std::string itemName,
77 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> const& enchantments,
78 ::std::vector<::ItemDescriptor> const& itemTagsAny,
79 ::std::vector<::ItemDescriptor> const& itemTagsAll,
80 ::std::vector<::ItemDescriptor> const& itemTagsNone,
81 bool usingUpcomingCreatorFeaturesExperiment
82 );
83
84 MCAPI bool _doItemTagsMatch(::Item const& item) const;
85 // NOLINTEND
86
87public:
88 // static functions
89 // NOLINTBEGIN
90 MCAPI static ::std::unique_ptr<::LootItemCondition>
91 deserialize(::Json::Value object, bool usingUpcomingCreatorFeaturesExperiment);
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(
98 ::IntRange count,
99 ::IntRange durability,
100 ::std::string itemName,
101 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> const& enchantments,
102 ::std::vector<::ItemDescriptor> const& itemTagsAny,
103 ::std::vector<::ItemDescriptor> const& itemTagsAll,
104 ::std::vector<::ItemDescriptor> const& itemTagsNone,
105 bool usingUpcomingCreatorFeaturesExperiment
106 );
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCAPI void $dtor();
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI bool $applies(::Random& random, ::LootTableContext& context);
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCAPI static void** $vftable();
125 // NOLINTEND
126};
Definition ItemDescriptor.h:22
Definition Item.h:65
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemMatchToolCondition.h:18
Definition LootTableContext.h:20
Definition Random.h:16
Definition IntRange.h:11
Definition LootItemMatchToolCondition.h:26
Definition context.h:5
Definition Alias.h:14