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