LeviLamina
Loading...
Searching...
No Matches
ItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/IItemComponentLegacyFactoryData.h"
7
8// auto generated forward declare list
9// clang-format off
10class ComponentItem;
11class CompoundTag;
12class SemVersion;
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::ComponentItem*> mOwner;
21 // NOLINTEND
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~ItemComponent() /*override*/ = default;
27
28 virtual bool checkComponentDataForContentErrors() const;
29
30 virtual void writeSettings();
31
32 virtual bool isNetworkComponent() const;
33
34 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
35
36 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
37
38 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
39
40 virtual void _initializeComponent(::ComponentItem& owner);
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46 MCFOLD bool $checkComponentDataForContentErrors() const;
47
48 MCFOLD void $writeSettings();
49
50 MCFOLD bool $isNetworkComponent() const;
51
52 MCFOLD ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
53
54 MCFOLD bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
55
56 MCFOLD void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
57
58 MCFOLD void $_initializeComponent(::ComponentItem& owner);
59
60
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
Definition ComponentItem.h:55
Definition CompoundTag.h:23
Definition ItemComponent.h:16
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition IItemComponentLegacyFactoryData.h:5
Definition ReflectionCtx.h:11
Definition ctx.h:5