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
10class Biome;
11class Block;
12class BlockPos;
13class BoundingBox;
14class ChunkPos;
15class Feature;
16class LevelChunk;
17class LevelData;
18class Pos;
19class Random;
22struct WorldGenContext;
23// clang-format on
24
26public:
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
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121 MCFOLD bool $canGetChunk() const;
122
123 MCFOLD ::LevelChunk* $getChunk(::ChunkPos const& pos);
124 // NOLINTEND
125};
Definition Biome.h:27
Definition BlockPos.h:18
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 WorldGenContext.h:13