LeviLamina
Loading...
Searching...
No Matches
SidePoweredComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/redstone/circuit/components/CapacitorComponent.h"
7#include "mc/world/redstone/circuit/components/CircuitComponentList.h"
8
9// auto generated forward declare list
10// clang-format off
12class BlockPos;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 24, ::CircuitComponentList> mSideComponents;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27#ifdef LL_PLAT_S
28 virtual ~SidePoweredComponent() /*override*/;
29#else // LL_PLAT_C
30 virtual ~SidePoweredComponent() /*override*/ = default;
31#endif
32
33 virtual uchar getPoweroutDirection() const /*override*/;
34
35 virtual bool
36 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
37
38 virtual bool canConsumePowerAnyDirection() const /*override*/;
39
40 virtual bool canConsumerPower() const /*override*/;
41
42 virtual void removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent) /*override*/;
43
44 virtual void removeFromAnySourceList(::BaseCircuitComponent const* component) /*override*/;
45 // NOLINTEND
46
47public:
48 // destructor thunk
49 // NOLINTBEGIN
50#ifdef LL_PLAT_S
51 MCAPI void $dtor();
52#endif
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCFOLD uchar $getPoweroutDirection() const;
59
60 MCFOLD bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
61
62 MCFOLD bool $canConsumePowerAnyDirection() const;
63
64 MCFOLD bool $canConsumerPower() const;
65
66 MCAPI void $removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent);
67
68 MCAPI void $removeFromAnySourceList(::BaseCircuitComponent const* component);
69
70
71 // NOLINTEND
72};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:17
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:18
Definition CircuitTrackingInfo.h:14
Definition SidePoweredComponent.h:17