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
18class LootItemMatchToolCondition : public ::LootItemCondition {
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&);
37 EnchantInfo(EnchantInfo const&);
38 EnchantInfo();
39 };
40
41public:
42 // member variables
43 // NOLINTBEGIN
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
55 LootItemMatchToolCondition& operator=(LootItemMatchToolCondition const&);
56 LootItemMatchToolCondition(LootItemMatchToolCondition const&);
57 LootItemMatchToolCondition();
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 virtual bool applies(::Random& context, ::LootTableContext&) /*override*/;
63
64 virtual ::LootItemCondition::ConditionType getConditionType() const /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCNAPI LootItemMatchToolCondition(
71 ::IntRange count,
72 ::IntRange durability,
73 ::std::string itemName,
74 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
75 ::std::vector<::ItemDescriptor> itemTagsAny,
76 ::std::vector<::ItemDescriptor> itemTagsAll,
77 ::std::vector<::ItemDescriptor> itemTagsNone
78 );
79
80 MCNAPI bool _doItemTagsMatch(::Item const& item) const;
81 // NOLINTEND
82
83public:
84 // static functions
85 // NOLINTBEGIN
86 MCNAPI static ::std::unique_ptr<::LootItemCondition> deserialize(::Json::Value const& object);
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCNAPI void* $ctor(
93 ::IntRange count,
94 ::IntRange durability,
95 ::std::string itemName,
96 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
97 ::std::vector<::ItemDescriptor> itemTagsAny,
98 ::std::vector<::ItemDescriptor> itemTagsAll,
99 ::std::vector<::ItemDescriptor> itemTagsNone
100 );
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
107
108 MCNAPI ::LootItemCondition::ConditionType $getConditionType() const;
109
110
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCNAPI static void** $vftable();
117 // NOLINTEND
118};
Definition ItemDescriptor.h:25
Definition Item.h:71
Definition Value.h:16
Definition LootItemCondition.h:12
MCAPI::LootItemCondition::ConditionType $getConditionType() const
MCAPI bool $applies(::Random &context, ::LootTableContext &)
static MCAPI ::std::unique_ptr<::LootItemCondition > deserialize(::Json::Value const &object)
static MCAPI void ** $vftable()
MCAPI bool _doItemTagsMatch(::Item const &item) const
MCAPI void * $ctor(::IntRange count, ::IntRange durability, ::std::string itemName, ::std::vector<::LootItemMatchToolCondition::EnchantInfo > enchantments, ::std::vector<::ItemDescriptor > itemTagsAny, ::std::vector<::ItemDescriptor > itemTagsAll, ::std::vector<::ItemDescriptor > itemTagsNone)
Definition LootTableContext.h:20
Definition Random.h:10
STL namespace.
Definition IntRange.h:11
Definition LootItemMatchToolCondition.h:26
Definition context.h:5
Definition Alias.h:14