LeviLamina
Loading...
Searching...
No Matches
ComparatorCapacitor.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 // ComparatorCapacitor inner types define
21 enum class Mode : int {
22 CompareMode = 0,
23 SubtractMode = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, int> mRearAnalogStrength;
30 ::ll::TypedStorage<4, 4, int> mSideAnalogStrengthRight;
31 ::ll::TypedStorage<4, 4, int> mSideAnalogStrengthLeft;
32 ::ll::TypedStorage<4, 4, int> mOldStrength;
33 ::ll::TypedStorage<4, 4, ::ComparatorCapacitor::Mode> mMode;
34 ::ll::TypedStorage<4, 4, int> mRearStrength;
35 ::ll::TypedStorage<4, 4, int> mSideStrengths;
36 ::ll::TypedStorage<1, 1, bool> mHasAnalogBeenSet;
37 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
38 // NOLINTEND
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 11
44 virtual bool addSource(
46 ::CircuitTrackingInfo const& info,
47 int& dampening,
48 bool& bDirectlyPowered
49 ) /*override*/;
50
51 // vIndex: 14
52 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
53
54 // vIndex: 15
55 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
56
57 // vIndex: 16
58 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
59
60 // vIndex: 17
61 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
62
63 // vIndex: 24
64 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
65
66 // vIndex: 0
67 virtual ~ComparatorCapacitor() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI bool
80 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
81
82 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
83
84 MCAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
85
86 MCAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
87
88 MCFOLD ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
89
90 MCFOLD ::CircuitComponentType $getCircuitComponentType() const;
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BlockPos.h:18
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:13
Definition CircuitTrackingInfo.h:14
Definition ComparatorCapacitor.h:18
Definition SidePoweredComponent.h:17