LeviLamina
Loading...
Searching...
No Matches
PoweredBlockComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/redstone/circuit/components/BaseCircuitComponent.h"
7#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
13class CircuitSystem;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mPromotedToProducer;
22 ::ll::TypedStorage<1, 1, bool> mAllowAsPowerSource;
23 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 12
30 virtual bool
31 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
32
33 // vIndex: 11
34 virtual bool addSource(
36 ::CircuitTrackingInfo const& info,
37 int& dampening,
38 bool& bDirectlyPowered
39 ) /*override*/;
40
41 // vIndex: 14
42 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
43
44 // vIndex: 7
45 virtual bool canConsumerPower() const /*override*/;
46
47 // vIndex: 21
48 virtual bool hasChildrenSource() const /*override*/;
49
50 // vIndex: 1
51 virtual int getStrength() const /*override*/;
52
53 // vIndex: 24
54 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
55
56 // vIndex: 0
57 virtual ~PoweredBlockComponent() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCNAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
64
65 MCNAPI bool
66 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
67
68 MCNAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
69
70 MCNAPI bool $canConsumerPower() const;
71
72 MCNAPI bool $hasChildrenSource() const;
73
74 MCNAPI int $getStrength() const;
75
76 MCNAPI ::CircuitComponentType $getCircuitComponentType() const;
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:18
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
Definition PoweredBlockComponent.h:17
MCAPI bool $addSource(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
static MCAPI void ** $vftable()
MCAPI bool $evaluate(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI int $getStrength() const
MCAPI bool $hasChildrenSource() const
MCAPI bool $canConsumerPower() const
MCAPI::CircuitComponentType $getCircuitComponentType() const
MCAPI bool $allowConnection(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, bool &bDirectlyPowered)