LeviLamina
Loading...
Searching...
No Matches
RuinedPortalPiece.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/structure/BoundingBox.h"
7#include "mc/world/level/levelgen/structure/StructurePiece.h"
8#include "mc/world/level/levelgen/structure/StructurePieceType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Biome;
13class BiomeRegistry;
14class Block;
15class BlockPos;
16class BlockSource;
17class Random;
18// clang-format on
19
20class RuinedPortalPiece : public ::StructurePiece {
21public:
22 // RuinedPortalPiece inner types declare
23 // clang-format off
24 struct LocalRegistry;
25 // clang-format on
26
27 // RuinedPortalPiece inner types define
28 struct LocalRegistry {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::Block const&> mCrackedStoneBrick;
33 ::ll::TypedStorage<8, 8, ::Block const&> mMossyStoneBrick;
34 ::ll::TypedStorage<8, 8, ::Block const&> mPolishedBlackstoneBricks;
35 ::ll::TypedStorage<8, 8, ::Block const&> mCrackedPolishedBlackstoneBricks;
36 ::ll::TypedStorage<8, 8, ::Block const&> mAirBlock;
37 // NOLINTEND
38
39 public:
40 // prevent constructor by default
41 LocalRegistry& operator=(LocalRegistry const&);
42 LocalRegistry(LocalRegistry const&);
43 LocalRegistry();
44 };
45
46public:
47 // member variables
48 // NOLINTBEGIN
49 ::ll::TypedStorage<4, 4, int> mStructureOriginX;
50 ::ll::TypedStorage<4, 4, int> mStructureOriginZ;
51 ::ll::TypedStorage<4, 24, ::BoundingBox> mStructureBounds;
52 ::ll::TypedStorage<8, 8, ::BiomeRegistry&> mBiomeRegistry;
53 ::ll::TypedStorage<8, 8, ::Biome const&> mBiome;
54 ::ll::TypedStorage<8, 40, ::RuinedPortalPiece::LocalRegistry> mLocalRegistry;
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 RuinedPortalPiece& operator=(RuinedPortalPiece const&);
60 RuinedPortalPiece(RuinedPortalPiece const&);
61 RuinedPortalPiece();
62
63public:
64 // virtual functions
65 // NOLINTBEGIN
66 virtual ::StructurePieceType getType() const /*override*/;
67
68 virtual bool postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB) /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI void _addNetherrackDripColumn(::Random& random, ::BlockSource& region, ::BlockPos const pos);
75
76 MCAPI void _maybeReplaceGoldBlock(::Random& random, ::BlockSource& region, ::BlockPos const pos);
77 // NOLINTEND
78
79public:
80 // static functions
81 // NOLINTBEGIN
82 MCAPI static ::Block const& _getRandomFacingStairs(::Random& random, ::Block const& stairBlock);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI ::StructurePieceType $getType() const;
89
90 MCAPI bool $postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB);
91
92
93 // NOLINTEND
94};
Definition BiomeRegistry.h:36
Definition Biome.h:23
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:42
Definition BoundingBox.h:13
Definition Random.h:10
Definition StructurePiece.h:18
Definition RuinedPortalPiece.h:28