LeviLamina
Loading...
Searching...
No Matches
PulseCapacitor.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
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
13class CircuitSystem;
15// clang-format on
16
17class PulseCapacitor : public ::CapacitorComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mPowered;
22 ::ll::TypedStorage<1, 1, bool> mNewPowered;
23 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual bool canConsumePowerAnyDirection() const /*override*/;
30
31 virtual bool canConsumerPower() const /*override*/;
32
33 virtual bool
34 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
35
36 virtual uchar getPoweroutDirection() const /*override*/;
37
38 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
39
40 virtual void setStrength(int strength) /*override*/;
41
42 virtual int getStrength() const /*override*/;
43
44 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI PulseCapacitor();
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor();
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCFOLD bool $canConsumePowerAnyDirection() const;
63
64 MCFOLD bool $canConsumerPower() const;
65
66 MCFOLD bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
67
68 MCFOLD uchar $getPoweroutDirection() const;
69
70 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
71
72 MCAPI void $setStrength(int strength);
73
74 MCFOLD int $getStrength() const;
75
76 MCFOLD ::CircuitComponentType $getCircuitComponentType() const;
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86};
Definition BlockPos.h:21
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:19
Definition CircuitSystem.h:16
Definition CircuitTrackingInfo.h:14