LeviLamina
Loading...
Searching...
No Matches
SetArmorTrimFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
8
9// auto generated forward declare list
10// clang-format off
11class ItemInstance;
12class ItemStack;
13class ItemStackBase;
16class Random;
17namespace Json { class Value; }
18// clang-format on
19
20class SetArmorTrimFunction : public ::LootItemFunction {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 48, ::HashedString> mMaterial;
25 ::ll::TypedStorage<8, 48, ::HashedString> mPattern;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 SetArmorTrimFunction();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~SetArmorTrimFunction() /*override*/ = default;
36
37 virtual void apply(::ItemStack& item, ::Random&, ::LootTableContext& context) /*override*/;
38
39 virtual void apply(::ItemInstance& item, ::Random&, ::LootTableContext& context) /*override*/;
40
41 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI SetArmorTrimFunction(
48 ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
49 ::HashedString const& material,
50 ::HashedString const& pattern
51 );
52
53 MCAPI void _apply(::ItemStackBase& item, ::LootTableContext const& context) const;
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static ::std::unique_ptr<::LootItemFunction>
60 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(
67 ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
68 ::HashedString const& material,
69 ::HashedString const& pattern
70 );
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCFOLD void $apply(::ItemStack& item, ::Random&, ::LootTableContext& context);
77
78 MCFOLD void $apply(::ItemInstance& item, ::Random&, ::LootTableContext& context);
79
80 MCFOLD ::LootItemFunction::FunctionType $getFunctionType() const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition HashedString.h:5
Definition ItemInstance.h:15
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:17
Definition LootTableContext.h:20
Definition Random.h:10
static MCAPI void ** $vftable()
Definition context.h:5