LeviLamina
Loading...
Searching...
No Matches
ProducerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/redstone/circuit/components/BaseCircuitComponent.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 ProducerComponent : public ::BaseCircuitComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mNextStrength;
22 ::ll::TypedStorage<1, 1, bool> mAttachedAllowed;
23 ::ll::TypedStorage<1, 1, bool> mStopPower;
24 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual bool evaluate(::CircuitSystem& system, ::BlockPos const& pos) /*override*/;
31
32 virtual void setStrength(int strength) /*override*/;
33
34 virtual bool
35 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
36
37 virtual bool canStopPower() const /*override*/;
38
39 virtual void setStopPower(bool bPower) /*override*/;
40
41 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
42
43 virtual ~ProducerComponent() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ProducerComponent();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor();
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI bool $evaluate(::CircuitSystem& system, ::BlockPos const& pos);
62
63 MCAPI void $setStrength(int strength);
64
65 MCAPI bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
66
67 MCAPI bool $canStopPower() const;
68
69 MCAPI void $setStopPower(bool bPower);
70
71 MCFOLD ::CircuitComponentType $getCircuitComponentType() const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:19
Definition CircuitSceneGraph.h:18
Definition CircuitSystem.h:15
Definition CircuitTrackingInfo.h:14