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;
19// clang-format on
20
21class RuinedPortalPiece : public ::StructurePiece {
22public:
23 // RuinedPortalPiece inner types declare
24 // clang-format off
25 struct LocalRegistry;
26 // clang-format on
27
28 // RuinedPortalPiece inner types define
29 struct LocalRegistry {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 8, ::Block const&> mCrackedStoneBrick;
34 ::ll::TypedStorage<8, 8, ::Block const&> mMossyStoneBrick;
35 ::ll::TypedStorage<8, 8, ::Block const&> mPolishedBlackstoneBricks;
36 ::ll::TypedStorage<8, 8, ::Block const&> mCrackedPolishedBlackstoneBricks;
37 ::ll::TypedStorage<8, 8, ::Block const&> mAirBlock;
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 LocalRegistry& operator=(LocalRegistry const&);
43 LocalRegistry(LocalRegistry const&);
44 LocalRegistry();
45 };
46
47public:
48 // member variables
49 // NOLINTBEGIN
50 ::ll::TypedStorage<4, 4, int> mStructureOriginX;
51 ::ll::TypedStorage<4, 4, int> mStructureOriginZ;
52 ::ll::TypedStorage<4, 24, ::BoundingBox> mStructureBounds;
53 ::ll::TypedStorage<8, 8, ::BiomeRegistry&> mBiomeRegistry;
54 ::ll::TypedStorage<8, 8, ::Biome const&> mBiome;
55 ::ll::TypedStorage<8, 40, ::RuinedPortalPiece::LocalRegistry> mLocalRegistry;
56 // NOLINTEND
57
58public:
59 // prevent constructor by default
60 RuinedPortalPiece& operator=(RuinedPortalPiece const&);
61 RuinedPortalPiece(RuinedPortalPiece const&);
62 RuinedPortalPiece();
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 virtual ::StructurePieceType getType() const /*override*/;
68
69 virtual bool postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB) /*override*/;
70
71 virtual ~RuinedPortalPiece() /*override*/ = default;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI void _addNetherrackDripColumn(::Random& random, ::BlockSource& region, ::BlockPos pos);
78
79 MCAPI void _maybeReplaceBlock(
80 ::Random& random,
81 ::BlockSource& region,
82 ::BlockPos pos,
83 ::PortalEnvironmentModifiers const& modifiers
84 );
85
86 MCAPI void _maybeReplaceFullStoneBlock(
87 ::Random& random,
88 ::BlockSource& region,
89 ::BlockPos pos,
90 ::Block const& block,
91 ::PortalEnvironmentModifiers const& modifiers
92 );
93
94 MCAPI void _maybeReplaceStairs(
95 ::Random& random,
96 ::BlockSource& region,
97 ::BlockPos pos,
98 ::PortalEnvironmentModifiers const& modifiers
99 );
100
101 MCAPI void _moveStructureBoundsToSuitableY(
102 ::Random& random,
103 ::BlockSource& region,
104 ::PortalEnvironmentModifiers const& modifiers
105 );
106
107 MCAPI void
108 _spreadNetherrack(::Random& random, ::BlockSource& region, ::PortalEnvironmentModifiers const& modifiers);
109 // NOLINTEND
110
111public:
112 // static functions
113 // NOLINTBEGIN
114 MCAPI static ::Block const& _getRandomFacingStairs(::Random& random, ::Block const& stairBlock);
115
116 MCAPI static bool _willLavaFlowIn(::BlockSource& region, ::BlockPos pos);
117 // NOLINTEND
118
119public:
120 // virtual function thunks
121 // NOLINTBEGIN
122 MCAPI ::StructurePieceType $getType() const;
123
124 MCAPI bool $postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB);
125
126
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCNAPI static void** $vftable();
133 // NOLINTEND
134};
Definition BiomeRegistry.h:37
Definition Biome.h:23
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition BoundingBox.h:13
Definition Random.h:10
static MCAPI void ** $vftable()
Definition StructurePiece.h:18
Definition PortalEnvironmentModifiers.h:5
Definition RuinedPortalPiece.h:29