Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Gravity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/v2/heightmap_projection/Type.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<1, 1, ::br::worldgen::HeightmapProjection::Type> mHeightmap;
26 ::ll::TypedStorage<4, 4, int> mOffset;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::std::optional<::br::worldgen::StructureBlockInfo> process(
33 ::IBlockSource& region,
36 ::br::worldgen::StructureBlockInfo const& originalBlockInfo,
37 ::br::worldgen::StructureBlockInfo&& processedBlockInfo,
39 ) const /*override*/;
40
41 virtual ::br::worldgen::StructureProcessorType type() const /*override*/;
42
43 virtual void appendMetadataKey(::Util::XXHash& hash) const /*override*/;
44 // NOLINTEND
45
46public:
47 // static variables
48 // NOLINTBEGIN
49 MCNAPI static ::gsl::not_null<::std::shared_ptr<::br::worldgen::StructureProcessor const>> const&
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI ::std::optional<::br::worldgen::StructureBlockInfo> $process(
57 ::IBlockSource& region,
60 ::br::worldgen::StructureBlockInfo const& originalBlockInfo,
61 ::br::worldgen::StructureBlockInfo&& processedBlockInfo,
63 ) const;
64
65 MCNAPI ::br::worldgen::StructureProcessorType $type() const;
66
67 MCNAPI void $appendMetadataKey(::Util::XXHash& hash) const;
68
69
70 // NOLINTEND
71};
72
73} // namespace br::worldgen::processors
Definition BlockPos.h:14
Definition IBlockSource.h:39
Definition XXHash.h:7
Definition Gravity.h:21
MCAPI ::std::optional<::br::worldgen::StructureBlockInfo > $process(::IBlockSource &region, ::BlockPos, ::BlockPos, ::br::worldgen::StructureBlockInfo const &originalBlockInfo, ::br::worldgen::StructureBlockInfo &&processedBlockInfo, ::br::worldgen::StructurePlaceSettings const &) const
MCAPI void $appendMetadataKey(::Util::XXHash &hash) const
MCAPI::br::worldgen::StructureProcessorType $type() const
static MCAPI ::gsl::not_null<::std::shared_ptr<::br::worldgen::StructureProcessor const > > const & TERRAIN_MATCHING()
Definition StructureBlockInfo.h:16
Definition StructurePlaceSettings.h:18
Definition StructureProcessor.h:23