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 ItemStack;
15class Vec3;
16namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
20namespace PublisherItemComponent {
21
22struct OnUseOn : public ::ItemComponent,
24 void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&),
25 ::Bedrock::PubSub::ThreadModel::SingleThreaded,
26 0> {
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<1, 1, bool> mAutoSucceedOnClient;
31 // NOLINTEND
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool isNetworkComponent() const /*override*/;
37
38 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
39
40 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46 MCFOLD bool $isNetworkComponent() const;
47
48 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
49
50 MCAPI bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
51
52
53 // NOLINTEND
54
55public:
56 // vftables
57 // NOLINTBEGIN
58 MCNAPI static void** $vftable();
59
61
62 MCNAPI static void** $vftableForConnector();
63 // NOLINTEND
64};
65
66} // namespace PublisherItemComponent
Definition Actor.h:125
Definition Publisher.h:8
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition ItemComponent.h:17
Definition ItemStack.h:35
Definition Vec3.h:10
Definition OnUseOn.h:26
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForConnector()
static MCAPI void ** $vftableForDispatchingPublisherBase()
Definition ReflectionCtx.h:11
Definition ctx.h:5