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: 0
63 virtual ~LootItemMatchToolCondition() /*override*/;
64
65 // vIndex: 1
66 virtual bool applies(::Random& random, ::LootTableContext& context) /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
73 ::IntRange count,
74 ::IntRange durability,
75 ::std::string itemName,
76 ::std::vector<::LootItemMatchToolCondition::EnchantInfo> const& enchantments,
77 ::std::vector<::ItemDescriptor> const& itemTagsAny,
78 ::std::vector<::ItemDescriptor> const& itemTagsAll,
79 ::std::vector<::ItemDescriptor> const& 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 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> const& enchantments,
99 ::std::vector<::ItemDescriptor> const& itemTagsAny,
100 ::std::vector<::ItemDescriptor> const& itemTagsAll,
101 ::std::vector<::ItemDescriptor> const& 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 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition ItemDescriptor.h:22
Definition Item.h:65
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemMatchToolCondition.h:18
MCAPI void * $ctor(::IntRange count, ::IntRange durability, ::std::string itemName, ::std::vector<::LootItemMatchToolCondition::EnchantInfo > const &enchantments, ::std::vector<::ItemDescriptor > const &itemTagsAny, ::std::vector<::ItemDescriptor > const &itemTagsAll, ::std::vector<::ItemDescriptor > const &itemTagsNone)
static MCAPI void ** $vftable()
MCAPI bool _doItemTagsMatch(::Item const &item) const
MCAPI bool $applies(::Random &random, ::LootTableContext &context)
static MCAPI ::std::unique_ptr<::LootItemCondition > deserialize(::Json::Value object)
MCAPI LootItemMatchToolCondition(::IntRange count, ::IntRange durability, ::std::string itemName, ::std::vector<::LootItemMatchToolCondition::EnchantInfo > const &enchantments, ::std::vector<::ItemDescriptor > const &itemTagsAny, ::std::vector<::ItemDescriptor > const &itemTagsAll, ::std::vector<::ItemDescriptor > const &itemTagsNone)
Definition LootTableContext.h:20
Definition Random.h:11
Definition IntRange.h:11
Definition LootItemMatchToolCondition.h:26
Definition context.h:5
Definition Alias.h:14