LeviLamina
Loading...
Searching...
No Matches
BlockConnectionComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/NeighborBlockDirections.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13class BlockType;
14namespace BlockTrait { class IConnectionUpdateCallback; }
15// clang-format on
16
18public:
19 // BlockConnectionComponent inner types declare
20 // clang-format off
22 struct ConnectionData;
23 // clang-format on
24
25 // BlockConnectionComponent inner types define
27 public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Block const*>> mBlock;
31 ::ll::TypedStorage<4, 4, int> mUpdateFlags;
32 // NOLINTEND
33 };
34
36 public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<2, 2, ::NeighborBlockDirections> mDirections;
40 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockTrait::IConnectionUpdateCallback>> mUpdateCallback;
41 ::ll::TypedStorage<4, 4, int> mUpdateFlags;
42 // NOLINTEND
43
44 public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI ~ConnectionData();
48 // NOLINTEND
49
50 public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCFOLD void $dtor();
54 // NOLINTEND
55 };
56
57public:
58 // member variables
59 // NOLINTBEGIN
60 ::ll::TypedStorage<8, 24, ::std::vector<::BlockConnectionComponent::ConnectionData>> mConnectionData;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI void addCallback(
67 ::BlockType& blockType,
68 ::NeighborBlockDirections neighborBlockDirections,
69 ::std::unique_ptr<::BlockTrait::IConnectionUpdateCallback> callback,
70 int updateFlags
71 );
72
73 MCAPI ::Block const& handleConnectionUpdate(
74 ::BlockSource& region,
75 ::Block const& block,
76 ::BlockPos const& pos,
77 ::NeighborBlockDirections neighborDirections
78 ) const;
79 // NOLINTEND
80};
Definition BlockConnectionComponent.h:17
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition IConnectionUpdateCallback.h:15
Definition BlockType.h:84
Definition Block.h:43
Definition NeighborBlockDirections.h:14
Definition BlockConnectionComponent.h:26
Definition BlockConnectionComponent.h:35