Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
8#include "mc/world/item/components/ItemComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14class CompoundTag;
15class ItemStack;
16class Vec3;
17namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21namespace PublisherItemComponent {
22
23struct OnUseOn
24: public ::ItemComponent,
26 void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&, ::HandSlot),
27 ::Bedrock::PubSub::ThreadModel::SingleThreaded,
28 0> {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<1, 1, bool> mAutoSucceedOnClient;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual bool isNetworkComponent() const /*override*/;
39
40 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
41
42 virtual bool initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCNAPI bool $isNetworkComponent() const;
49
50 MCNAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
51
53
54
55 // NOLINTEND
56};
57
58} // namespace PublisherItemComponent
Definition Actor.h:116
Definition Publisher.h:25
Definition BlockPos.h:14
Definition CompoundTag.h:18
Definition ItemComponent.h:16
Definition ItemStack.h:26
Definition Vec3.h:10
Definition OnUseOn.h:28
MCAPI bool $isNetworkComponent() const
MCAPI ::std::unique_ptr<::CompoundTag > $buildNetworkTag(::cereal::ReflectionCtx const &ctx) const
MCAPI bool $initializeFromNetwork(::CompoundTag const &tag, ::cereal::ReflectionCtx const &ctx)
Definition ReflectionCtx.h:11
Definition ctx.h:5