Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SetItemNameFunction.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 ItemStackBase;
13class Random;
14namespace Json { class Value; }
15// clang-format on
16
17class SetItemNameFunction : public ::LootItemFunction {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::std::string> mName;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 SetItemNameFunction();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
32
33 virtual void applyPreVersion(::ItemStackBase& item, ::Random&, ::LootTableContext&) /*override*/;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI
40 SetItemNameFunction(::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates, ::std::string const& name);
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCNAPI static ::std::unique_ptr<::LootItemFunction>
47 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCNAPI void* $ctor(::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates, ::std::string const& name);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCNAPI ::LootItemFunction::FunctionType $getFunctionType() const;
60
62
63
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
Definition ItemStackBase.h:45
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:20
Definition LootTableContext.h:20
Definition Random.h:10
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &, ::LootTableContext &)
static MCAPI void ** $vftable()
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
MCAPI SetItemNameFunction(::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates, ::std::string const &name)
MCAPI void * $ctor(::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates, ::std::string const &name)