LeviLamina
Loading...
Searching...
No Matches
IBlockWorldGenAPI.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/BlockDataFetchResult.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
Biome
;
11
class
Block
;
12
class
BlockPos
;
13
class
BoundingBox
;
14
class
ChunkPos
;
15
class
Feature
;
16
class
LevelChunk
;
17
class
LevelData
;
18
class
Pos
;
19
class
Random
;
20
class
StructureSettings
;
21
class
StructureTemplate
;
22
struct
WorldGenContext
;
23
// clang-format on
24
25
class
IBlockWorldGenAPI
{
26
public
:
27
// virtual functions
28
// NOLINTBEGIN
29
// vIndex: 0
30
virtual
~IBlockWorldGenAPI
() =
default
;
31
32
// vIndex: 1
33
virtual
bool
canGetChunk()
const
;
34
35
// vIndex: 2
36
virtual ::LevelChunk* getChunk(
::ChunkPos
const
& pos);
37
38
// vIndex: 3
39
virtual ::Block
const
* tryGetLiquidBlock(
::BlockPos
const
&)
const
= 0;
40
41
// vIndex: 4
42
virtual ::Block
const
& getBlock(
::BlockPos
const
&)
const
= 0;
43
44
// vIndex: 5
45
virtual ::Block
const
& getBlockNoBoundsCheck(
::BlockPos
const
&)
const
= 0;
46
47
// vIndex: 6
48
virtual ::Block
const
& getExtraBlock(
::BlockPos
const
&)
const
= 0;
49
50
// vIndex: 7
51
virtual ::gsl::span<::BlockDataFetchResult<::Block>
const
>
52
fetchBlocksInBox(
::BoundingBox
const
&, ::std::function<
bool
(
::Block
const
&)>) = 0;
53
54
// vIndex: 8
55
virtual
bool
hasBiomeTag(uint64,
::BlockPos
const
&)
const
= 0;
56
57
// vIndex: 9
58
virtual
bool
setBlock(
::BlockPos
const
&,
::Block
const
&,
int
) = 0;
59
60
// vIndex: 10
61
virtual
bool
setBlockSimple(
::BlockPos
const
&,
::Block
const
&) = 0;
62
63
// vIndex: 11
64
virtual
bool
apply()
const
= 0;
65
66
// vIndex: 12
67
virtual
bool
placeStructure(
::BlockPos
const
&,
::StructureTemplate
&,
::StructureSettings
&) = 0;
68
69
// vIndex: 13
70
virtual
bool
mayPlace(
::BlockPos
const
&,
::Block
const
&)
const
= 0;
71
72
// vIndex: 14
73
virtual
bool
canSurvive(
::BlockPos
const
&,
::Block
const
&)
const
= 0;
74
75
// vIndex: 15
76
virtual
bool
canBeBuiltOver(
::BlockPos
const
&,
::Block
const
&)
const
= 0;
77
78
// vIndex: 16
79
virtual
short
getMaxHeight()
const
= 0;
80
81
// vIndex: 17
82
virtual
short
getMinHeight()
const
= 0;
83
84
// vIndex: 18
85
virtual
bool
shimPlaceForOldFeatures(
::Feature
const
&,
::BlockPos
const
&,
::Random
&)
const
= 0;
86
87
// vIndex: 19
88
virtual
short
getHeightmap(
int
,
int
) = 0;
89
90
// vIndex: 20
91
virtual
bool
isLegacyLevel() = 0;
92
93
// vIndex: 21
94
virtual ::Biome
const
* getBiome(
::BlockPos
const
&)
const
= 0;
95
96
// vIndex: 22
97
virtual
bool
isInBounds(
::Pos
const
&)
const
= 0;
98
99
// vIndex: 23
100
virtual
short
getLocalWaterLevel(
::BlockPos
const
&)
const
= 0;
101
102
// vIndex: 24
103
virtual ::LevelData
const
& getLevelData()
const
= 0;
104
105
// vIndex: 25
106
virtual ::WorldGenContext
const
& getContext() = 0;
107
108
// vIndex: 26
109
virtual
void
disableBlockSimple() = 0;
110
// NOLINTEND
111
112
public
:
113
// destructor thunk
114
// NOLINTBEGIN
115
116
// NOLINTEND
117
118
public
:
119
// virtual function thunks
120
// NOLINTBEGIN
121
MCFOLD
bool
$canGetChunk()
const
;
122
123
MCFOLD ::LevelChunk* $getChunk(
::ChunkPos
const
& pos);
124
// NOLINTEND
125
};
Biome
Definition
Biome.h:27
BlockPos
Definition
BlockPos.h:18
Block
Definition
Block.h:36
BoundingBox
Definition
BoundingBox.h:18
ChunkPos
Definition
ChunkPos.h:11
Feature
Definition
Feature.h:18
IBlockWorldGenAPI
Definition
IBlockWorldGenAPI.h:25
LevelChunk
Definition
LevelChunk.h:73
LevelData
Definition
LevelData.h:48
Pos
Definition
Pos.h:5
Random
Definition
Random.h:16
StructureSettings
Definition
StructureSettings.h:18
StructureTemplate
Definition
StructureTemplate.h:32
WorldGenContext
Definition
WorldGenContext.h:13
src
mc
world
level
IBlockWorldGenAPI.h
Generated on Sat Apr 26 2025 05:56:24 for LeviLamina by
1.12.0