LeviLamina
Loading...
Searching...
No Matches
FixedBiomeSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/biome/source/BiomeSource.h"
7#include "mc/world/level/biome/source/BiomeSourceType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Biome;
12class BiomeArea;
13class BoundingBox;
15class LevelChunk;
16struct BiomeHashType;
17struct BiomeIdType;
18struct GetBiomeOptions;
19// clang-format on
20
21class FixedBiomeSource : public ::BiomeSource {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::Biome const&> mFixedBiome;
26 // NOLINTEND
27
28public:
29 explicit FixedBiomeSource(Biome const& biome) : mFixedBiome(biome) {}
30
31public:
32 // prevent constructor by default
33 FixedBiomeSource& operator=(FixedBiomeSource const&);
34 FixedBiomeSource(FixedBiomeSource const&);
35 FixedBiomeSource();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual void fillBiomes(::LevelChunk& levelChunk, ::ChunkLocalNoiseCache const* chunkLocalNoiseCache) const
41 /*override*/;
42
43 virtual bool containsOnly(int, int, int, int, ::gsl::span<::BiomeIdType const> allowed) const /*override*/;
44
45 virtual ::BiomeArea getBiomeArea(::BoundingBox const& area, uint scale) const /*override*/;
46
47 virtual ::BiomeArea
48 getBiomeArea(::BoundingBox const& area, uint scale, ::GetBiomeOptions const& getBiomeOptions) const /*override*/;
49
50 virtual bool hasBiomeById(::BiomeIdType id) const /*override*/;
51
52 virtual bool hasBiomeByNameHash(::BiomeHashType hash) const /*override*/;
53
54 virtual ::BiomeSourceType const getType() const /*override*/;
55
56 virtual ::Biome const* _getBiome(::GetBiomeOptions const&) const /*override*/;
57
58 virtual ~FixedBiomeSource() /*override*/ = default;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI void $fillBiomes(::LevelChunk& levelChunk, ::ChunkLocalNoiseCache const* chunkLocalNoiseCache) const;
65
66 MCAPI bool $containsOnly(int, int, int, int, ::gsl::span<::BiomeIdType const> allowed) const;
67
68 MCAPI ::BiomeArea $getBiomeArea(::BoundingBox const& area, uint scale) const;
69
70 MCAPI ::BiomeArea
71 $getBiomeArea(::BoundingBox const& area, uint scale, ::GetBiomeOptions const& getBiomeOptions) const;
72
73 MCAPI bool $hasBiomeById(::BiomeIdType id) const;
74
75 MCAPI bool $hasBiomeByNameHash(::BiomeHashType hash) const;
76
77 MCFOLD ::BiomeSourceType const $getType() const;
78
79 MCFOLD ::Biome const* $_getBiome(::GetBiomeOptions const&) const;
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition BiomeArea.h:11
Definition BiomeSource.h:20
Definition Biome.h:23
Definition BoundingBox.h:13
Definition ChunkLocalNoiseCache.h:8
static MCAPI void ** $vftable()
Definition LevelChunk.h:79
Definition BiomeHashType.h:8
Definition BiomeIdType.h:8
Definition GetBiomeOptions.h:8