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 SharedTypes::v1_20_50 { struct InteractButtonItemComponent; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class InteractButtonItemComponent : public ::ItemComponent {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, bool> mRequiresInteract;
24 ::ll::TypedStorage<8, 32, ::std::string> mInteractText;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
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 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI explicit InteractButtonItemComponent(::SharedTypes::v1_20_50::InteractButtonItemComponent component);
47
48 MCFOLD ::std::string getInteractText() const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void bindType(
56 ::std::vector<::AllExperiments> const& requiredToggles,
57 ::std::optional<::SemVersion> releasedMinFormatVersion
58 );
59
60 MCAPI static ::HashedString const& getIdentifier();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCFOLD bool $isNetworkComponent() const;
73
74 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
75
76 MCAPI bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
77
78 MCAPI void $_initializeComponent(::ComponentItem& owner);
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition ComponentItem.h:55
Definition CompoundTag.h:23
Definition HashedString.h:5
Definition ItemComponent.h:17
Definition SemVersion.h:15
Definition InteractButtonItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5