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;
12struct BuildMatch;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCNAPI ::BuildMatch match(::BlockPos const& pos) const;
33
34 MCNAPI ::BuildMatch match(::BlockPos const& pos, int subPattern, int rowIndex, uchar forward, uchar up) const;
35
36 MCNAPI void replaceBlocks(
37 char subPattern,
38 ::BuildMatch const& buildMatch,
39 ::Block const& block,
40 ::brstd::function_ref<void(::Block const&, ::BlockPos const&)> preReplaceCallback
41 ) const;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCNAPI static void noopCallback(::Block const&, ::BlockPos const&);
48 // NOLINTEND
49};
Definition BlockPatternMatcher.h:15
static MCAPI void noopCallback(::Block const &, ::BlockPos const &)
MCAPI::BuildMatch match(::BlockPos const &pos) const
MCAPI void replaceBlocks(char subPattern, ::BuildMatch const &buildMatch, ::Block const &block, ::brstd::function_ref< void(::Block const &, ::BlockPos const &)> preReplaceCallback) const
MCAPI::BuildMatch match(::BlockPos const &pos, int subPattern, int rowIndex, uchar forward, uchar up) const
Definition BlockPos.h:17
Definition Block.h:37
Definition function_ref.h:60
Definition BuildMatch.h:5
Definition Alias.h:14