LeviLamina
Loading...
Searching...
No Matches
RedstoneTorchCapacitor.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/CircuitComponentType.h"
8#include "mc/world/redstone/circuit/components/RedstoneLogicExecutionFlags.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockPos;
15class CircuitSystem;
17// clang-format on
18
20public:
21 // RedstoneTorchCapacitor inner types declare
22 // clang-format off
23 struct State;
24 // clang-format on
25
26 // RedstoneTorchCapacitor inner types define
27 struct State {
28 public:
29 // member variables
30 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 State& operator=(State const&);
39 State(State const&);
40 State();
41 };
42
43public:
44 // member variables
45 // NOLINTBEGIN
46 ::ll::TypedStorage<8, 8, ::RedstoneTorchCapacitor*> mNextOrder;
47 ::ll::TypedStorage<4, 4, int> mSelfPowerCount;
48 ::ll::TypedStorage<1, 6, ::RedstoneTorchCapacitor::State[2]> mState;
49 ::ll::TypedStorage<1, 1, bool> mCanReigniteFromBurnout;
50 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
51 // NOLINTEND
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 0
57 virtual ~RedstoneTorchCapacitor() /*override*/ = default;
58
59 // vIndex: 26
60 virtual uchar getPoweroutDirection() const /*override*/;
61
62 // vIndex: 12
63 virtual bool
64 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
65
66 // vIndex: 11
67 virtual bool addSource(
68 ::CircuitSceneGraph& graph,
69 ::CircuitTrackingInfo const& info,
70 int& dampening,
71 bool& bDirectlyPowered
72 ) /*override*/;
73
74 // vIndex: 10
75 virtual void removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent) /*override*/;
76
77 // vIndex: 14
78 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
79
80 // vIndex: 15
81 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
82
83 // vIndex: 1
84 virtual int getStrength() const /*override*/;
85
86 // vIndex: 19
87 virtual bool isHalfPulse() const /*override*/;
88
89 // vIndex: 24
90 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
91
92 // vIndex: 17
93 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
94
95 // vIndex: 16
96 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
97 // NOLINTEND
98
99public:
100 // member functions
101 // NOLINTBEGIN
102 MCAPI int _findStrongestStrength(::BlockPos const& targetPos, ::CircuitSystem& bPowerFromSelf, bool&);
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCFOLD uchar $getPoweroutDirection() const;
115
116 MCAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
117
118 MCAPI bool
119 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
120
121 MCAPI void $removeSource(::BlockPos const& posSource, ::BaseCircuitComponent const* pComponent);
122
123 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
124
125 MCAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
126
127 MCAPI int $getStrength() const;
128
129 MCAPI bool $isHalfPulse() const;
130
131 MCAPI ::CircuitComponentType $getCircuitComponentType() const;
132
133 MCFOLD ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
134
135 MCAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCAPI static void** $vftable();
142 // NOLINTEND
143};
Definition BaseCircuitComponent.h:20
Definition BlockPos.h:18
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:13
Definition CircuitTrackingInfo.h:14
Definition RedstoneTorchCapacitor.h:19
Definition RedstoneTorchCapacitor.h:27
Definition Alias.h:14