LeviLamina
Loading...
Searching...
No Matches
BlockPatternMatcher.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/function_ref.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13struct BlockPatternData;
14struct BuildMatch;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::BlockSource&> mRegion;
22 ::ll::TypedStorage<8, 8, ::BlockPatternData const&> mData;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI ::BuildMatch match(::BlockPos const& pos) const;
35
36 MCAPI ::BuildMatch match(::BlockPos const& pos, int subPattern, int rowIndex, uchar forward, uchar up) const;
37
38 MCAPI void replaceBlocks(
39 char subPattern,
40 ::BuildMatch const& buildMatch,
41 ::Block const& block,
42 ::brstd::function_ref<void(::Block const&, ::BlockPos const&)> preReplaceCallback
43 ) const;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCFOLD static void noopCallback(::Block const&, ::BlockPos const&);
50 // NOLINTEND
51};
Definition BlockPatternMatcher.h:17
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:38
Definition function_ref.h:60
Definition BlockPatternData.h:16
Definition BuildMatch.h:5