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