LeviLamina
Loading...
Searching...
No Matches
VillagePiece.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/biome/components/vanilla/VanillaBiomeTypes.h"
7#include "mc/world/level/levelgen/structure/PoolElementStructurePiece.h"
8#include "mc/world/level/levelgen/v1/AdjustmentEffect.h"
9
10// auto generated forward declare list
11// clang-format off
12class Block;
13class BlockPos;
14class BlockSource;
15class BlockVolume;
16class ChunkPos;
17class Dimension;
19class Random;
20class StructurePiece;
21// clang-format on
22
23class VillagePiece : public ::PoolElementStructurePiece {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual int generateHeightAtPosition(
28 ::BlockPos const& pos,
29 ::Dimension& dim,
30 ::BlockVolume& box,
31 ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::std::vector<short>>>& chunkHeightCache
32 ) const /*override*/;
33
34 virtual ::Block const*
35 getSupportBlock(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const /*override*/;
36
37 virtual ::Block const& getBeardStabilizeBlock(::Block const& foundationBlock) const /*override*/;
38
39 virtual ::AdjustmentEffect getTerrainAdjustmentEffect() const /*override*/;
40
41 virtual bool _needsPostProcessing(::BlockSource& region) /*override*/;
42
43 virtual ~VillagePiece() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static void addPieces(
50 ::BlockPos position,
51 ::std::vector<::std::unique_ptr<::StructurePiece>>& pieces,
52 ::Random& random,
54 ::VanillaBiomeTypes biomeType,
55 ::Dimension& dimension
56 );
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI int $generateHeightAtPosition(
63 ::BlockPos const& pos,
64 ::Dimension& dim,
65 ::BlockVolume& box,
66 ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::std::vector<short>>>& chunkHeightCache
67 ) const;
68
69 MCAPI ::Block const*
70 $getSupportBlock(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
71
72 MCAPI ::Block const& $getBeardStabilizeBlock(::Block const& foundationBlock) const;
73
74 MCFOLD ::AdjustmentEffect $getTerrainAdjustmentEffect() const;
75
76 MCAPI bool $_needsPostProcessing(::BlockSource& region);
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition BlockVolume.h:13
Definition Block.h:43
Definition ChunkPos.h:11
Definition Dimension.h:85
Definition JigsawStructureRegistry.h:22
Definition Random.h:10
Definition StructurePiece.h:18
Definition VillagePiece.h:23
static MCAPI void ** $vftable()