LeviLamina
Loading...
Searching...
No Matches
BlockRedstoneConsumerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13namespace BlockEvents { class BlockEventManager; }
14namespace BlockEvents { class BlockPlaceEvent; }
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, schar> mMinPower;
22 ::ll::TypedStorage<1, 1, bool> mPropagatePower;
23 ::ll::TypedStorage<1, 1, bool> mConsumePowerAnyDirection;
24 ::ll::TypedStorage<1, 1, bool> mAcceptSameDirection;
25 ::ll::TypedStorage<1, 1, bool> mAcceptHalfPulse;
26 ::ll::TypedStorage<1, 1, bool> mIgnoreFirstUpdate;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnPlaceEventSubscription;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI void _onPlace(::BlockEvents::BlockPlaceEvent const& ev) const;
34
35 MCAPI void finalize(::BlockEvents::BlockEventManager& eventManager);
36 // NOLINTEND
37
38public:
39 // static functions
40 // NOLINTBEGIN
41 MCAPI static void setupRedstoneComponent(::Block const& block, ::BlockSource& region, ::BlockPos const& pos);
42 // NOLINTEND
43};
Definition BlockEventManager.h:15
Definition BlockPlaceEvent.h:16
Definition BlockPos.h:19
Definition BlockRedstoneConsumerComponent.h:17
Definition BlockSource.h:68
Definition Block.h:43