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
10
class
Block
;
11
class
BlockPos
;
12
class
BlockSource
;
13
struct
BlockPatternData
;
14
struct
BuildMatch
;
15
// clang-format on
16
17
class
BlockPatternMatcher
{
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
::ll::TypedStorage<8, 8, ::BlockSource&> mRegion;
22
::ll::TypedStorage<8, 8, ::BlockPatternData const&> mData;
23
// NOLINTEND
24
25
public
:
26
// prevent constructor by default
27
BlockPatternMatcher
& operator=(
BlockPatternMatcher
const
&);
28
BlockPatternMatcher
(
BlockPatternMatcher
const
&);
29
BlockPatternMatcher
();
30
31
public
:
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
46
public
:
47
// static functions
48
// NOLINTBEGIN
49
MCFOLD
static
void
noopCallback(
::Block
const
&,
::BlockPos
const
&);
50
// NOLINTEND
51
};
BlockPatternMatcher
Definition
BlockPatternMatcher.h:17
BlockPos
Definition
BlockPos.h:17
BlockSource
Definition
BlockSource.h:66
Block
Definition
Block.h:38
brstd::function_ref
Definition
function_ref.h:60
BlockPatternData
Definition
BlockPatternData.h:16
BuildMatch
Definition
BuildMatch.h:5
src-server
mc
world
level
BlockPatternMatcher.h
Generated on Tue Nov 25 2025 04:01:50 for LeviLamina by
1.12.0