Skip to content
LeviMC
English
AutoLightDark
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/world/level/block/components/IBlockComponent.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13namespace BlockEvents { class BlockStateChangeEvent; }
14// clang-format on
15
17public:
18 // BlockRedstoneConsumerComponent inner types define
19 using OnSetupRedstoneComponentCallback = void(::BlockSource&, ::BlockPos const&);
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, schar> mMinPower;
25 ::ll::TypedStorage<1, 1, bool> mPropagatePower;
26 ::ll::TypedStorage<1, 1, bool> mConsumePowerAnyDirection;
27 ::ll::TypedStorage<1, 1, bool> mAcceptSameDirection;
28 ::ll::TypedStorage<1, 1, bool> mAcceptHalfPulse;
29 ::ll::TypedStorage<1, 1, bool> mIgnoreFirstUpdate;
30 ::ll::TypedStorage<8, 8, void (*)(::BlockSource&, ::BlockPos const&)> mOnSetupRedstoneComponentCallback;
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCNAPI void onEvent(::BlockEvents::BlockStateChangeEvent const& ev) const;
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCAPI static void setupRedstoneComponent(::Block const& block, ::BlockSource& region, ::BlockPos const& pos);
43 // NOLINTEND
44};
Definition BlockStateChangeEvent.h:17
Definition BlockPos.h:14
Definition BlockRedstoneConsumerComponent.h:16
MCAPI void onEvent(::BlockEvents::BlockStateChangeEvent const &ev) const
Definition BlockSource.h:72
Definition Block.h:42
Definition IBlockComponent.h:5