LeviLamina
Loading...
Searching...
No Matches
SpecificEnchantFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemInstance;
11class ItemStack;
12class ItemStackBase;
15class Random;
16namespace Json { class Value; }
17// clang-format on
18
20public:
21 // SpecificEnchantFunction inner types declare
22 // clang-format off
23 struct EnchantInfo;
24 // clang-format on
25
26 // SpecificEnchantFunction inner types define
27 struct EnchantInfo {
28 public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 EnchantInfo& operator=(EnchantInfo const&);
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 // vIndex: 0
58 virtual ~SpecificEnchantFunction() /*override*/ = default;
59
60 // vIndex: 4
61 virtual void apply(::ItemStack& item, ::Random& random, ::LootTableContext& context) /*override*/;
62
63 // vIndex: 2
64 virtual void apply(::ItemInstance& itemInstance, ::Random& random, ::LootTableContext& context) /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
71 ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
72 ::std::vector<::SpecificEnchantFunction::EnchantInfo> const& enchantments
73 );
74
75 MCAPI void _applyInner(::ItemStackBase& item, ::Random& random, ::LootTableContext& allowNonVanilla, bool);
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static ::std::unique_ptr<::LootItemFunction>
82 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(
89 ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
90 ::std::vector<::SpecificEnchantFunction::EnchantInfo> const& enchantments
91 );
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI void $apply(::ItemStack& item, ::Random& random, ::LootTableContext& context);
104
105 MCAPI void $apply(::ItemInstance& itemInstance, ::Random& random, ::LootTableContext& context);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCAPI static void** $vftable();
112 // NOLINTEND
113};
Definition ItemInstance.h:16
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:17
Definition LootTableContext.h:20
Definition Random.h:16
Definition SpecificEnchantFunction.h:19
Definition SpecificEnchantFunction.h:27
Definition context.h:5
Definition Alias.h:14