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 // virtual function thunks
72 // NOLINTBEGIN
73 MCNAPI bool
74 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
75
76 MCNAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
77
78 MCNAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
79
80 MCNAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
81
82 MCNAPI ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
83
84 MCNAPI ::CircuitComponentType $getCircuitComponentType() const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BlockPos.h:18
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
Definition ComparatorCapacitor.h:18
MCAPI void $updateDependencies(::CircuitSceneGraph &system, ::BlockPos const &pos)
MCAPI bool $addSource(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
MCAPI bool $evaluate(::CircuitSystem &system, ::BlockPos const &pos)
static MCAPI void ** $vftable()
MCAPI::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const
MCAPI void $cacheValues(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI::CircuitComponentType $getCircuitComponentType() const
Definition SidePoweredComponent.h:17