LeviLamina
Loading...
Searching...
No Matches
PistonConsumer.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/ConsumerComponent.h"
8
9// auto generated forward declare list
10// clang-format off
13// clang-format on
14
15class PistonConsumer : public ::ConsumerComponent {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<1, 1, uchar> mBlockedFace;
20 ::ll::TypedStorage<8, 8, ::CircuitComponentType const> mCircuitComponentType;
21 // NOLINTEND
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~PistonConsumer() /*override*/ = default;
27
28 virtual bool canConsumePowerAnyDirection() const /*override*/;
29
30 virtual bool
31 allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered) /*override*/;
32
33 virtual bool addSource(
35 ::CircuitTrackingInfo const& info,
36 int& dampening,
37 bool& bDirectlyPowered
38 ) /*override*/;
39
40 virtual ::CircuitComponentType getCircuitComponentType() const /*override*/;
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46 MCFOLD bool $canConsumePowerAnyDirection() const;
47
48 MCFOLD bool $allowConnection(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, bool& bDirectlyPowered);
49
50 MCAPI bool
51 $addSource(::CircuitSceneGraph& graph, ::CircuitTrackingInfo const& info, int& dampening, bool& bDirectlyPowered);
52
53 MCAPI ::CircuitComponentType $getCircuitComponentType() const;
54
55
56 // NOLINTEND
57
58public:
59 // vftables
60 // NOLINTBEGIN
61 MCAPI static void** $vftable();
62 // NOLINTEND
63};
Definition CircuitSceneGraph.h:18
Definition CircuitTrackingInfo.h:14
Definition PistonConsumer.h:15