Skip to content
LeviMC
English
AutoLightDark
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
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#ifdef LL_PLAT_S
51 MCNAPI PulseCapacitor();
52#endif
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58#ifdef LL_PLAT_S
59 MCNAPI void* $ctor();
60#endif
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI bool $canConsumePowerAnyDirection() const;
67
68 MCNAPI bool $canConsumerPower() const;
69
70 MCNAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
71
72 MCNAPI uchar $getPoweroutDirection() const;
73
74 MCNAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
75
76 MCNAPI void $setStrength(int strength);
77
78 MCNAPI int $getStrength() const;
79
80 MCNAPI ::CircuitComponentType $getCircuitComponentType() const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition BlockPos.h:14
Definition CapacitorComponent.h:9
Definition CircuitSceneGraph.h:18
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14
Definition PulseCapacitor.h:17
MCAPI bool $canConsumePowerAnyDirection() const
MCAPI int $getStrength() const
MCAPI bool $allowConnection(::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, bool &bDirectlyPowered)
MCAPI::CircuitComponentType $getCircuitComponentType() const
MCAPI uchar $getPoweroutDirection() const
MCAPI bool $canConsumerPower() const
MCAPI bool $evaluate(::CircuitSystem &system, ::BlockPos const &pos)
MCAPI void $setStrength(int strength)
static MCAPI void ** $vftable()