Skip to content
LeviLamina

API Reference

On this page

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 virtual bool addSource(
47 ::CircuitTrackingInfo const& info,
48 int& dampening,
49 bool& bDirectlyPowered
50 ) /*override*/;
51
52 virtual void updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos) /*override*/;
53
54 virtual void checkLock(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
55
56 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
57
58 virtual void cacheValues(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
59
60 virtual void setStrength(int strength) /*override*/;
61
62 virtual int getStrength() const /*override*/;
63
64 virtual ::RedstoneLogicExecutionFlags getLogicExecutionFlags() const /*override*/;
65
66 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCNAPI void* $ctor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCNAPI bool
85 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
86
87 MCNAPI void $updateDependencies(::CircuitSceneGraph& system, ::BlockPos const& pos);
88
89 MCNAPI void $checkLock(::CircuitSystem& system, ::BlockPos const& pos);
90
91 MCNAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
92
93 MCNAPI void $cacheValues(::CircuitSystem& system, ::BlockPos const& pos);
94
95 MCNAPI void $setStrength(int strength);
96
97 MCNAPI int $getStrength() const;
98
99 MCNAPI ::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const;
100
101 MCNAPI ::CircuitComponentType $getCircuitComponentType() const;
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition BlockPos.h:14
Definition CircuitSceneGraph.h:18
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
MCAPI void * $ctor()
MCAPI int $getStrength() const
MCAPI::RedstoneLogicExecutionFlags $getLogicExecutionFlags() const
MCAPI::CircuitComponentType $getCircuitComponentType() const
MCAPI void $setStrength(int strength)
MCAPI bool $evaluate(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI void $checkLock(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI void $updateDependencies(::CircuitSceneGraph &system, ::BlockPos const &pos)
MCAPI void $cacheValues(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI bool $addSource(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
MCAPI RepeaterCapacitor()
static MCAPI void ** $vftable()
Definition SidePoweredComponent.h:17