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