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 MCNAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCNAPI ::Block const& $getBlock(::BlockPos const& pos) const;
128
129 MCNAPI ::Block const& $getBlockNoBoundsCheck(::BlockPos const& pos) const;
130
131 MCNAPI ::Block const& $getExtraBlock(::BlockPos const& pos) const;
132
133 MCNAPI ::Block const* $tryGetLiquidBlock(::BlockPos const& pos) const;
134
135 MCNAPI ::gsl::span<::BlockDataFetchResult<::Block> const>
136 $fetchBlocksInBox(::BoundingBox const& box, ::std::function<bool(::Block const&)> predicate);
137
138 MCNAPI bool $hasBiomeTag(uint64 tagNameHash, ::BlockPos const& pos) const;
139
140 MCNAPI bool $setBlock(::BlockPos const& pos, ::Block const& newBlock, int updateFlags);
141
142 MCNAPI bool $setBlockSimple(::BlockPos const& pos, ::Block const& block);
143
144 MCNAPI bool $apply() const;
145
146 MCNAPI bool $placeStructure(::BlockPos const& pos, ::StructureTemplate& structure, ::StructureSettings& settings);
147
148 MCNAPI bool $mayPlace(::BlockPos const& pos, ::Block const& block) const;
149
150 MCNAPI bool $canSurvive(::BlockPos const& pos, ::Block const& block) const;
151
152 MCNAPI bool $canBeBuiltOver(::BlockPos const& pos, ::Block const& block) const;
153
154 MCNAPI short $getMaxHeight() const;
155
156 MCNAPI short $getMinHeight() const;
157
158 MCNAPI bool $shimPlaceForOldFeatures(::Feature const&, ::BlockPos const&, ::Random&) const;
159
160 MCNAPI short $getHeightmap(int x, int z);
161
162 MCNAPI bool $isLegacyLevel();
163
164 MCNAPI ::Biome const* $getBiome(::BlockPos const& pos) const;
165
166 MCNAPI bool $isInBounds(::Pos const& pos) const;
167
168 MCNAPI short $getLocalWaterLevel(::BlockPos const& pos) const;
169
170 MCNAPI ::LevelData const& $getLevelData() const;
171
172 MCNAPI ::WorldGenContext const& $getContext();
173
174 MCNAPI void $disableBlockSimple();
175 // NOLINTEND
176
177public:
178 // vftables
179 // NOLINTBEGIN
180 MCNAPI static void** $vftable();
181 // NOLINTEND
182};
Definition Biome.h:26
Definition BlockPos.h:18
Definition Block.h:38
Definition BoundingBox.h:13
Definition Feature.h:18
Definition IBlockWorldGenAPI.h:25
Definition LevelData.h:49
Definition Pos.h:5
Definition Random.h:11
Definition StructureSettings.h:18
Definition StructureTemplate.h:32
Definition TransactionalWorldBlockTarget.h:24
MCAPI bool $setBlock(::BlockPos const &pos, ::Block const &newBlock, int updateFlags)
MCAPI short $getMinHeight() const
MCAPI short $getMaxHeight() const
MCAPI bool $canSurvive(::BlockPos const &pos, ::Block const &block) const
MCAPI bool $shimPlaceForOldFeatures(::Feature const &, ::BlockPos const &, ::Random &) const
MCAPI ::gsl::span<::BlockDataFetchResult<::Block > const > $fetchBlocksInBox(::BoundingBox const &box, ::std::function< bool(::Block const &)> predicate)
MCAPI bool $isInBounds(::Pos const &pos) const
MCAPI::LevelData const & $getLevelData() const
MCAPI::Biome const * $getBiome(::BlockPos const &pos) const
MCAPI::Block const & $getBlock(::BlockPos const &pos) const
MCAPI::Block const & $getExtraBlock(::BlockPos const &pos) const
MCAPI bool $canBeBuiltOver(::BlockPos const &pos, ::Block const &block) const
MCAPI short $getLocalWaterLevel(::BlockPos const &pos) const
MCAPI::Block const * $tryGetLiquidBlock(::BlockPos const &pos) const
MCAPI::Block const & $getBlockNoBoundsCheck(::BlockPos const &pos) const
static MCAPI void ** $vftable()
MCAPI short $getHeightmap(int x, int z)
MCAPI bool $apply() const
MCAPI bool $mayPlace(::BlockPos const &pos, ::Block const &block) const
MCAPI bool $setBlockSimple(::BlockPos const &pos, ::Block const &block)
MCAPI bool $hasBiomeTag(uint64 tagNameHash, ::BlockPos const &pos) const
MCAPI::WorldGenContext const & $getContext()
MCAPI bool $placeStructure(::BlockPos const &pos, ::StructureTemplate &structure, ::StructureSettings &settings)
Definition WorldGenContext.h:13
Definition Alias.h:14