LeviLamina
Loading...
Searching...
No Matches
OnUseOn.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7#include "mc/world/item/components/ItemComponent.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class CompoundTag;
14class HashedString;
15class ItemStack;
16class Vec3;
17namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21namespace PublisherItemComponent {
22
23class OnUseOn : public ::ItemComponent,
25 void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&),
26 ::Bedrock::PubSub::ThreadModel::MultiThreaded> {
27public:
28 // member variables
29 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 OnUseOn& operator=(OnUseOn const&);
36 OnUseOn(OnUseOn const&);
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 3
42 virtual bool isNetworkComponent() const /*override*/;
43
44 // vIndex: 4
45 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
46
47 // vIndex: 5
48 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
49
50 // vIndex: 0
51 virtual ~OnUseOn() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI OnUseOn();
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static ::HashedString const& getIdentifier();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor();
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD bool $isNetworkComponent() const;
82
83 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
84
85 MCAPI bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCAPI static void** $vftable();
92
93 MCAPI static void** $vftableForDispatchingPublisherBase();
94
95 MCAPI static void** $vftableForConnector();
96 // NOLINTEND
97};
98
99} // namespace PublisherItemComponent
Definition Actor.h:104
Definition Publisher.h:8
Definition BlockPos.h:18
Definition CompoundTag.h:13
Definition HashedString.h:5
Definition ItemComponent.h:16
Definition ItemStack.h:25
Definition OnUseOn.h:26
Definition Vec3.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14