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
23class 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
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 OnUseOn& operator=(OnUseOn const&);
37 OnUseOn(OnUseOn const&);
38 OnUseOn();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 3
44 virtual bool isNetworkComponent() const /*override*/;
45
46 // vIndex: 4
47 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
48
49 // vIndex: 5
50 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
51
52 // vIndex: 0
53 virtual ~OnUseOn() /*override*/ = default;
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static ::HashedString const& getIdentifier();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCFOLD bool $isNetworkComponent() const;
66
67 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
68
69 MCAPI bool $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76
78
79 MCNAPI static void** $vftableForConnector();
80 // NOLINTEND
81};
82
83} // namespace PublisherItemComponent
Definition Actor.h:103
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:27
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForConnector()
static MCAPI void ** $vftableForDispatchingPublisherBase()
Definition Vec3.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14