LeviLamina
Loading...
Searching...
No Matches
WorldBlockTarget.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/BlockDataFetchResult.h"
7#include "mc/world/level/IBlockWorldGenAPI.h"
8
9// auto generated forward declare list
10// clang-format off
11class Biome;
12class Block;
13class BlockPos;
14class BlockSource;
15class BoundingBox;
16class ChunkPos;
17class Feature;
18class LevelChunk;
19class LevelData;
20class Pos;
21class Random;
24struct WorldGenContext;
25// clang-format on
26
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::BlockSource&> mBlockSource;
32 ::ll::TypedStorage<8, 80, ::WorldGenContext> mWorldGenContext;
33 ::ll::TypedStorage<1, 1, bool> mBlockSimpleIsAllowed;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 0
40 virtual ~WorldBlockTarget() /*override*/;
41
42 // vIndex: 1
43 virtual bool canGetChunk() const /*override*/;
44
45 // vIndex: 2
46 virtual ::LevelChunk* getChunk(::ChunkPos const& pos) /*override*/;
47
48 // vIndex: 4
49 virtual ::Block const& getBlock(::BlockPos const& pos) const /*override*/;
50
51 // vIndex: 5
52 virtual ::Block const& getBlockNoBoundsCheck(::BlockPos const& pos) const /*override*/;
53
54 // vIndex: 6
55 virtual ::Block const& getExtraBlock(::BlockPos const& pos) const /*override*/;
56
57 // vIndex: 3
58 virtual ::Block const* tryGetLiquidBlock(::BlockPos const& pos) const /*override*/;
59
60 // vIndex: 7
61 virtual ::gsl::span<::BlockDataFetchResult<::Block> const>
62 fetchBlocksInBox(::BoundingBox const& box, ::std::function<bool(::Block const&)> predicate) /*override*/;
63
64 // vIndex: 8
65 virtual bool hasBiomeTag(uint64 tagNameHash, ::BlockPos const& pos) const /*override*/;
66
67 // vIndex: 9
68 virtual bool setBlock(::BlockPos const& pos, ::Block const& newBlock, int updateFlags) /*override*/;
69
70 // vIndex: 10
71 virtual bool setBlockSimple(::BlockPos const& pos, ::Block const& block) /*override*/;
72
73 // vIndex: 11
74 virtual bool apply() const /*override*/;
75
76 // vIndex: 12
77 virtual bool
78 placeStructure(::BlockPos const& pos, ::StructureTemplate& structure, ::StructureSettings& settings) /*override*/;
79
80 // vIndex: 13
81 virtual bool mayPlace(::BlockPos const& pos, ::Block const& block) const /*override*/;
82
83 // vIndex: 14
84 virtual bool canSurvive(::BlockPos const& pos, ::Block const& block) const /*override*/;
85
86 // vIndex: 15
87 virtual bool canBeBuiltOver(::BlockPos const& pos, ::Block const& block) const /*override*/;
88
89 // vIndex: 16
90 virtual short getMaxHeight() const /*override*/;
91
92 // vIndex: 17
93 virtual short getMinHeight() const /*override*/;
94
95 // vIndex: 18
96 virtual bool shimPlaceForOldFeatures(::Feature const& feature, ::BlockPos const& pos, ::Random& random) const
97 /*override*/;
98
99 // vIndex: 19
100 virtual short getHeightmap(int x, int z) /*override*/;
101
102 // vIndex: 20
103 virtual bool isLegacyLevel() /*override*/;
104
105 // vIndex: 21
106 virtual ::Biome const* getBiome(::BlockPos const& pos) const /*override*/;
107
108 // vIndex: 22
109 virtual bool isInBounds(::Pos const& pos) const /*override*/;
110
111 // vIndex: 23
112 virtual short getLocalWaterLevel(::BlockPos const& pos) const /*override*/;
113
114 // vIndex: 24
115 virtual ::LevelData const& getLevelData() const /*override*/;
116
117 // vIndex: 25
118 virtual ::WorldGenContext const& getContext() /*override*/;
119
120 // vIndex: 26
121 virtual void disableBlockSimple() /*override*/;
122 // NOLINTEND
123
124public:
125 // destructor thunk
126 // NOLINTBEGIN
127 MCAPI void $dtor();
128 // NOLINTEND
129
130public:
131 // virtual function thunks
132 // NOLINTBEGIN
133 MCFOLD bool $canGetChunk() const;
134
135 MCAPI ::LevelChunk* $getChunk(::ChunkPos const& pos);
136
137 MCFOLD ::Block const& $getBlock(::BlockPos const& pos) const;
138
139 MCFOLD ::Block const& $getBlockNoBoundsCheck(::BlockPos const& pos) const;
140
141 MCFOLD ::Block const& $getExtraBlock(::BlockPos const& pos) const;
142
143 MCAPI ::Block const* $tryGetLiquidBlock(::BlockPos const& pos) const;
144
145 MCAPI ::gsl::span<::BlockDataFetchResult<::Block> const>
146 $fetchBlocksInBox(::BoundingBox const& box, ::std::function<bool(::Block const&)> predicate);
147
148 MCAPI bool $hasBiomeTag(uint64 tagNameHash, ::BlockPos const& pos) const;
149
150 MCAPI bool $setBlock(::BlockPos const& pos, ::Block const& newBlock, int updateFlags);
151
152 MCAPI bool $setBlockSimple(::BlockPos const& pos, ::Block const& block);
153
154 MCFOLD bool $apply() const;
155
156 MCAPI bool $placeStructure(::BlockPos const& pos, ::StructureTemplate& structure, ::StructureSettings& settings);
157
158 MCAPI bool $mayPlace(::BlockPos const& pos, ::Block const& block) const;
159
160 MCAPI bool $canSurvive(::BlockPos const& pos, ::Block const& block) const;
161
162 MCAPI bool $canBeBuiltOver(::BlockPos const& pos, ::Block const& block) const;
163
164 MCAPI short $getMaxHeight() const;
165
166 MCAPI short $getMinHeight() const;
167
168 MCAPI bool $shimPlaceForOldFeatures(::Feature const& feature, ::BlockPos const& pos, ::Random& random) const;
169
170 MCAPI short $getHeightmap(int x, int z);
171
172 MCAPI bool $isLegacyLevel();
173
174 MCAPI ::Biome const* $getBiome(::BlockPos const& pos) const;
175
176 MCAPI bool $isInBounds(::Pos const& pos) const;
177
178 MCAPI short $getLocalWaterLevel(::BlockPos const& pos) const;
179
180 MCAPI ::LevelData const& $getLevelData() const;
181
182 MCFOLD ::WorldGenContext const& $getContext();
183
184 MCAPI void $disableBlockSimple();
185 // NOLINTEND
186
187public:
188 // vftables
189 // NOLINTBEGIN
190 MCAPI static void** $vftable();
191 // NOLINTEND
192};
Definition Biome.h:27
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BoundingBox.h:18
Definition ChunkPos.h:11
Definition Feature.h:18
Definition IBlockWorldGenAPI.h:25
Definition LevelChunk.h:73
Definition LevelData.h:48
Definition Pos.h:5
Definition Random.h:16
Definition StructureSettings.h:18
Definition StructureTemplate.h:32
Definition WorldBlockTarget.h:27
Definition WorldGenContext.h:13