Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI static ::std::unique_ptr<::LootItemFunction>
54 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI ::LootItemFunction::FunctionType $getFunctionType() const;
61
62 MCNAPI void $applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&);
63
64
65 // NOLINTEND
66};
Definition ItemStackBase.h:45
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:20
Definition LootTableContext.h:20
Definition Random.h:10
Definition SpecificEnchantFunction.h:19
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &random, ::LootTableContext &)
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
STL namespace.
Definition SpecificEnchantFunction.h:27