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
22public:
23 // RuinedPortalPiece inner types declare
24 // clang-format off
25 struct LocalRegistry;
26 // clang-format on
27
28 // RuinedPortalPiece inner types define
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&);
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&);
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 // vIndex: 2
68 virtual ::StructurePieceType getType() const /*override*/;
69
70 // vIndex: 4
71 virtual bool postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB) /*override*/;
72
73 // vIndex: 0
74 virtual ~RuinedPortalPiece() /*override*/ = default;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI void _addNetherrackDripColumn(::Random& random, ::BlockSource& region, ::BlockPos pos);
81
82 MCAPI void _maybeReplaceBlock(
83 ::Random& random,
84 ::BlockSource& region,
85 ::BlockPos pos,
86 ::PortalEnvironmentModifiers const& modifiers
87 );
88
89 MCAPI void _maybeReplaceFullStoneBlock(
90 ::Random& random,
91 ::BlockSource& region,
92 ::BlockPos pos,
93 ::Block const& block,
94 ::PortalEnvironmentModifiers const& modifiers
95 );
96
97 MCAPI void _maybeReplaceGoldBlock(::Random& random, ::BlockSource& region, ::BlockPos pos);
98
99 MCAPI void _maybeReplaceStairs(
100 ::Random& random,
101 ::BlockSource& region,
102 ::BlockPos pos,
103 ::PortalEnvironmentModifiers const& modifiers
104 );
105
106 MCAPI void _moveStructureBoundsToSuitableY(
107 ::Random& random,
108 ::BlockSource& region,
109 ::PortalEnvironmentModifiers const& modifiers
110 );
111
112 MCAPI void
113 _spreadNetherrack(::Random& random, ::BlockSource& region, ::PortalEnvironmentModifiers const& modifiers);
114 // NOLINTEND
115
116public:
117 // static functions
118 // NOLINTBEGIN
119 MCAPI static ::Block const& _getRandomFacingStairs(::Random& random, ::Block const& stairBlock);
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
125 MCAPI ::StructurePieceType $getType() const;
126
127 MCAPI bool $postProcess(::BlockSource& region, ::Random& random, ::BoundingBox const& chunkBB);
128 // NOLINTEND
129
130public:
131 // vftables
132 // NOLINTBEGIN
133 MCNAPI static void** $vftable();
134 // NOLINTEND
135};
Definition BiomeRegistry.h:35
Definition Biome.h:23
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition BoundingBox.h:13
Definition Random.h:10
Definition RuinedPortalPiece.h:21
static MCAPI void ** $vftable()
Definition StructurePiece.h:18
Definition PortalEnvironmentModifiers.h:5
Definition RuinedPortalPiece.h:29