LeviLamina
Loading...
Searching...
No Matches
InteractButtonItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/ItemComponent.h"
7#include "mc/world/level/storage/AllExperiments.h"
8
9// auto generated forward declare list
10// clang-format off
11class ComponentItem;
12class CompoundTag;
13class HashedString;
14class SemVersion;
15namespace cereal { struct ReflectionCtx; }
16// clang-format on
17
18class InteractButtonItemComponent : public ::ItemComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mRequiresInteract;
23 ::ll::TypedStorage<8, 32, ::std::string> mInteractText;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 InteractButtonItemComponent(InteractButtonItemComponent const&);
29 InteractButtonItemComponent();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual bool isNetworkComponent() const /*override*/;
35
36 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
37
38 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
39
40 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
41
42 virtual ~InteractButtonItemComponent() /*override*/ = default;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCFOLD ::InteractButtonItemComponent& operator=(::InteractButtonItemComponent&&);
49
50 MCFOLD ::InteractButtonItemComponent& operator=(::InteractButtonItemComponent const&);
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static void bindType(
58 ::std::vector<::AllExperiments> const& requiredToggles,
59 ::std::optional<::SemVersion> releasedMinFormatVersion
60 );
61
62 MCAPI static ::HashedString const& getIdentifier();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCFOLD bool $isNetworkComponent() const;
69
70 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
71
72 MCAPI bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
73
74 MCAPI void $_initializeComponent(::ComponentItem& owner);
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition ComponentItem.h:55
Definition CompoundTag.h:23
Definition HashedString.h:5
static MCAPI void ** $vftable()
Definition ItemComponent.h:16
Definition SemVersion.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5