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/util/IntRange.h"
7#include "mc/world/item/enchanting/Enchant.h"
8#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
9
10// auto generated forward declare list
11// clang-format off
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
31 ::ll::TypedStorage<1, 1, ::Enchant::Type> enchantment;
32 ::ll::TypedStorage<4, 8, ::IntRange> levelRange;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 24, ::std::vector<::SpecificEnchantFunction::EnchantInfo>> mEnchantments;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
46
47 virtual void applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&) /*override*/;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53#ifdef LL_PLAT_C
54 MCAPI static ::std::unique_ptr<::LootItemFunction>
55 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
56#endif
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCFOLD ::LootItemFunction::FunctionType $getFunctionType() const;
63
64 MCAPI void $applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&);
65
66
67 // NOLINTEND
68};
Definition ItemStackBase.h:44
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:20
Definition LootTableContext.h:20
Definition Random.h:10
Definition SpecificEnchantFunction.h:19
Definition SpecificEnchantFunction.h:27