LeviLamina
Loading...
Searching...
No Matches
BlockLeashableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace BlockEvents { class BlockBreakEvent; }
12namespace BlockEvents { class BlockEventManager; }
13namespace BlockEvents { class BlockPlayerDestroyEvent; }
14namespace BlockEvents { class BlockPlayerInteractEvent; }
15// clang-format on
16
17struct BlockLeashableComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 12, ::Vec3> mLeashKnotOffset;
22 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnBlockInteractEventSubscription;
23 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnBlockDestroyEventSubscription;
24 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnBlockPlayerDestroyEventSubscription;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 BlockLeashableComponent& operator=(BlockLeashableComponent const&);
30 BlockLeashableComponent(BlockLeashableComponent const&);
31 BlockLeashableComponent();
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI void _onBlockBreak(::BlockEvents::BlockBreakEvent& event) const;
37
38 MCAPI void _onBlockPlayerDestroy(::BlockEvents::BlockPlayerDestroyEvent& event) const;
39
40 MCAPI void _onBlockPlayerInteract(::BlockEvents::BlockPlayerInteractEvent& event) const;
41
42 MCAPI void finalize(::BlockEvents::BlockEventManager& eventManager);
43
44 MCAPI ::BlockLeashableComponent& operator=(::BlockLeashableComponent&&);
45 // NOLINTEND
46};
Definition BlockBreakEvent.h:17
Definition BlockEventManager.h:15
Definition BlockPlayerDestroyEvent.h:17
Definition BlockPlayerInteractEvent.h:17