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 // destructor thunk
62 // NOLINTBEGIN
63
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
70
71 MCAPI bool
72 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
73
74 MCFOLD bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
75
76 MCFOLD bool $canConsumerPower() const;
77
78 MCFOLD bool $hasChildrenSource() const;
79
80 MCAPI int $getStrength() const;
81
82 MCFOLD ::CircuitComponentType $getCircuitComponentType() const;
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition BaseCircuitComponent.h:20
Definition BlockPos.h:18
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:13
Definition CircuitTrackingInfo.h:14
Definition PoweredBlockComponent.h:17