LeviLamina
Loading...
Searching...
No Matches
BlockRedstoneProducerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/EnumSet.h"
7#include "mc/legacy/facing/Name.h"
8#include "mc/world/level/block/components/IBlockComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12class Block;
13class BlockPos;
14class BlockSource;
16namespace BlockEvents { class BlockStateChangeEvent; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, schar> mPower;
24 ::ll::TypedStorage<1, 1, uchar> mStronglyPoweredFace;
25 ::ll::TypedStorage<1, 1, ::Bedrock::EnumSet<::Facing::Name, 6>> mConnectedFaces;
26 ::ll::TypedStorage<1, 1, bool> mIsTransformRelative;
27 ::ll::TypedStorage<1, 1, bool> mAllowPowerUp;
28 ::ll::TypedStorage<1, 1, bool> mAllowPowerDown;
29 ::ll::TypedStorage<1, 1, bool> mSetSignalStrengthOnRedstoneComponentSetup;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI void finalize(::BlockTransformationComponent const* transformationComponent);
36
37 MCAPI void onEvent(::BlockEvents::BlockStateChangeEvent const& ev) const;
38 // NOLINTEND
39
40public:
41 // static functions
42 // NOLINTBEGIN
43 MCAPI static void setRedstoneSignal(::Block const& block, ::BlockSource& region, ::BlockPos const& pos);
44
45 MCAPI static void setupRedstoneComponent(::Block const& block, ::BlockSource& region, ::BlockPos const& pos);
46 // NOLINTEND
47};
Definition BlockStateChangeEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition BlockTransformationComponent.h:9
Definition Block.h:41
Definition BlockRedstoneProducerComponent.h:19
Definition IBlockComponent.h:5