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
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 1
63 virtual bool applies(::Random&, ::LootTableContext& context) /*override*/;
64
65 // vIndex: 2
66 virtual ::LootItemCondition::ConditionType getConditionType() const /*override*/;
67
68 // vIndex: 0
69 virtual ~LootItemMatchToolCondition() /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
76 ::IntRange count,
77 ::IntRange durability,
78 ::std::string itemName,
79 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
80 ::std::vector<::ItemDescriptor> itemTagsAny,
81 ::std::vector<::ItemDescriptor> itemTagsAll,
82 ::std::vector<::ItemDescriptor> itemTagsNone
83 );
84
85 MCNAPI bool _doItemTagsMatch(::Item const& item) const;
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCNAPI static ::std::unique_ptr<::LootItemCondition> deserialize(::Json::Value const& object);
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCNAPI void* $ctor(
98 ::IntRange count,
99 ::IntRange durability,
100 ::std::string itemName,
101 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> enchantments,
102 ::std::vector<::ItemDescriptor> itemTagsAny,
103 ::std::vector<::ItemDescriptor> itemTagsAll,
104 ::std::vector<::ItemDescriptor> itemTagsNone
105 );
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCNAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
118
119 MCNAPI ::LootItemCondition::ConditionType $getConditionType() const;
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftable();
126 // NOLINTEND
127};
Definition ItemDescriptor.h:22
Definition Item.h:66
Definition LootItemCondition.h:12
Definition LootItemMatchToolCondition.h:18
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:19
Definition Random.h:10
STL namespace.
Definition IntRange.h:11
Definition LootItemMatchToolCondition.h:26
Definition context.h:5
Definition Alias.h:14