LeviLamina
Loading...
Searching...
No Matches
CircuitSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/BlockPos.h"
7#include "mc/world/redstone/circuit/CircuitSceneGraph.h"
8
9// auto generated forward declare list
10// clang-format off
12class BlockSource;
13// clang-format on
14
16public:
17 // CircuitSystem inner types declare
18 // clang-format off
20 // clang-format on
21
22 // CircuitSystem inner types define
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 12, ::BlockPos> mChunkPos;
28 // NOLINTEND
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<1, 1, bool> mLockGraph;
35 ::ll::TypedStorage<8, 408, ::CircuitSceneGraph> mSceneGraph;
36 ::ll::TypedStorage<8, 24, ::std::vector<::CircuitSystem::LevelChunkTracking>> mAddedLevelChunk;
37 ::ll::TypedStorage<1, 1, bool> mHasBeenEvaluated;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ::BaseCircuitComponent*
44 createComponent(::BlockPos const& pos, uchar direction, ::std::unique_ptr<::BaseCircuitComponent> newComponent);
45
46 MCAPI void evaluate(::BlockSource* region);
47
48 MCAPI void evaluateComponents(bool bOnlyProducers);
49
50 MCAPI int getStrength(::BlockPos const& pos);
51
52 MCAPI bool isAvailableAt(::BlockPos const& pos);
53
54 MCAPI void removeComponents(::BlockPos const& pos);
55
56 MCAPI void setStrength(::BlockPos const& pos, int strength);
57
58 MCAPI void updateBlocks(::BlockSource& region, ::BlockPos const& chunkPos);
59 // NOLINTEND
60};
Definition BaseCircuitComponent.h:19
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CircuitSystem.h:23
Definition CircuitSystem.h:15