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&, ::LootTableContext& context) /*override*/;
63
64 virtual ::LootItemCondition::ConditionType getConditionType() const /*override*/;
65
66 virtual ~LootItemMatchToolCondition() /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCNAPI LootItemMatchToolCondition(
73 ::IntRange count,
74 ::IntRange durability,
75 ::std::string itemName,
76 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
77 ::std::vector<::ItemDescriptor> itemTagsAny,
78 ::std::vector<::ItemDescriptor> itemTagsAll,
79 ::std::vector<::ItemDescriptor> itemTagsNone
80 );
81
82 MCNAPI bool _doItemTagsMatch(::Item const& item) const;
83 // NOLINTEND
84
85public:
86 // static functions
87 // NOLINTBEGIN
88 MCNAPI static ::std::unique_ptr<::LootItemCondition> deserialize(::Json::Value const& object);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor(
95 ::IntRange count,
96 ::IntRange durability,
97 ::std::string itemName,
98 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
99 ::std::vector<::ItemDescriptor> itemTagsAny,
100 ::std::vector<::ItemDescriptor> itemTagsAll,
101 ::std::vector<::ItemDescriptor> itemTagsNone
102 );
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108 MCNAPI void $dtor();
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
115
116 MCNAPI ::LootItemCondition::ConditionType $getConditionType() const;
117
118
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCNAPI static void** $vftable();
125 // NOLINTEND
126};
Definition ItemDescriptor.h:23
Definition Item.h:69
Definition Value.h:16
Definition LootItemCondition.h:12
MCAPI::LootItemCondition::ConditionType $getConditionType() const
static MCAPI ::std::unique_ptr<::LootItemCondition > deserialize(::Json::Value const &object)
static MCAPI void ** $vftable()
MCAPI bool _doItemTagsMatch(::Item const &item) const
MCAPI bool $applies(::Random &, ::LootTableContext &context)
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