LeviLamina
Loading...
Searching...
No Matches
SetPotionFunction.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 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 32, ::std::string> mPotionName;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~SetPotionFunction() /*override*/ = default;
30
31 virtual void apply(::ItemStack& item, ::Random&, ::LootTableContext& context) /*override*/;
32
33 virtual void apply(::ItemInstance& item, ::Random&, ::LootTableContext& context) /*override*/;
34
35 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI void _apply(::ItemStackBase& item, ::LootTableContext const& context) const;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static ::std::unique_ptr<::LootItemFunction>
48 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCFOLD void $apply(::ItemStack& item, ::Random&, ::LootTableContext& context);
55
56 MCFOLD void $apply(::ItemInstance& item, ::Random&, ::LootTableContext& context);
57
58 MCFOLD ::LootItemFunction::FunctionType $getFunctionType() const;
59
60
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
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
Definition SetPotionFunction.h:19
static MCAPI void ** $vftable()
Definition context.h:5