LeviLamina
Loading...
Searching...
No Matches
Rule.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/chunk/RuleSet.h"
7#include "mc/world/level/levelgen/v2/processors/StructureProcessor.h"
8#include "mc/world/level/levelgen/v2/processors/StructureProcessorType.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class IBlockSource;
14namespace Util { class XXHash; }
15namespace br::worldgen { struct StructureBlockInfo; }
16namespace br::worldgen { struct StructurePlaceSettings; }
17// clang-format on
18
19namespace br::worldgen::processors {
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::br::worldgen::processors::RuleSet>> mRules;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ::std::optional<::br::worldgen::StructureBlockInfo> process(
32 ::IBlockSource& region,
33 ::BlockPos structurePos,
34 ::BlockPos originalBlockInfo,
35 ::br::worldgen::StructureBlockInfo const& processedBlockInfo,
38 ) const /*override*/;
39
40 virtual ::br::worldgen::StructureProcessorType type() const /*override*/;
41
42 virtual void appendMetadataKey(::Util::XXHash& hash) const /*override*/;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static ::br::worldgen::processors::Rule from(::std::vector<::br::worldgen::processors::RuleSet> rules);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCAPI ::std::optional<::br::worldgen::StructureBlockInfo> $process(
55 ::IBlockSource& region,
56 ::BlockPos structurePos,
57 ::BlockPos originalBlockInfo,
58 ::br::worldgen::StructureBlockInfo const& processedBlockInfo,
61 ) const;
62
63 MCFOLD ::br::worldgen::StructureProcessorType $type() const;
64
65 MCAPI void $appendMetadataKey(::Util::XXHash& hash) const;
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
76
77} // namespace br::worldgen::processors
Definition BlockPos.h:21
Definition IBlockSource.h:38
Definition XXHash.h:7
static MCAPI void ** $vftable()
Definition StructureBlockInfo.h:16
Definition StructurePlaceSettings.h:18
Definition StructureProcessor.h:23