LeviLamina
Loading...
Searching...
No Matches
RepeaterCapacitor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/redstone/circuit/components/CircuitComponentType.h"
7#include "mc/world/redstone/circuit/components/RedstoneLogicExecutionFlags.h"
8#include "mc/world/redstone/circuit/components/SidePoweredComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
14class CircuitSystem;
16// clang-format on
17
19public:
20 // RepeaterCapacitor inner types define
21 enum class States : int {
22 Off = 0,
23 On = 1,
24 OffLocked = 2,
25 OnLocked = 3,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 20, ::RepeaterCapacitor::States[5]> mOnStates;
32 ::ll::TypedStorage<4, 4, int> mInsertAt;
33 ::ll::TypedStorage<1, 1, bool> mPowered;
34 ::ll::TypedStorage<1, 1, bool> mNextPower;
35 ::ll::TypedStorage<1, 1, bool> mLocked;
36 ::ll::TypedStorage<4, 4, int> mPulseCount;
37 ::ll::TypedStorage<1, 1, bool> mPulse;
38 ::ll::TypedStorage<1, 1, bool> mNextPulse;
39 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 11
46 virtual bool addSource(
48 ::CircuitTrackingInfo const& info,
49 int& dampening,
50 bool& bDirectlyPowered
51 ) /*override*/;
52
53 // vIndex: 16
54 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
55
56 // vIndex: 13
57 virtual void checkLock(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
58
59 // vIndex: 14
60 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
61
62 // vIndex: 15
63 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
64
65 // vIndex: 3
66 virtual void setStrength(int strength) /*override*/;
67
68 // vIndex: 1
69 virtual int getStrength() const /*override*/;
70
71 // vIndex: 17
72 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
73
74 // vIndex: 24
75 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
76
77 // vIndex: 0
78 virtual ~RepeaterCapacitor() /*override*/ = default;
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI bool
91 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
92
93 MCAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
94
95 MCAPI void $checkLock(::CircuitSystem& system, ::BlockPos const& pos);
96
97 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
98
99 MCAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
100
101 MCAPI void $setStrength(int strength);
102
103 MCAPI int $getStrength() const;
104
105 MCFOLD ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
106
107 MCFOLD ::CircuitComponentType $getCircuitComponentType() const;
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCAPI static void** $vftable();
114 // NOLINTEND
115};
Definition BlockPos.h:18
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:13
Definition CircuitTrackingInfo.h:14
Definition RepeaterCapacitor.h:18
Definition SidePoweredComponent.h:17