LeviLamina
Loading...
Searching...
No Matches
OverworldDimension.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7#include "mc/world/level/dimension/Dimension.h"
8#include "mc/world/level/dimension/LimboEntitiesVersion.h"
9#include "mc/world/level/storage/StorageVersion.h"
10
11// auto generated forward declare list
12// clang-format off
13class ChunkSource;
14class CompoundTag;
15class LevelChunk;
16class Vec3;
17class WorldGenerator;
19namespace br::worldgen { class StructureSetRegistry; }
20namespace mce { class Color; }
21// clang-format on
22
23class OverworldDimension : public ::Dimension {
24public:
25 // prevent constructor by default
26 OverworldDimension();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~OverworldDimension() /*override*/ = default;
32
33 virtual ::Vec3 translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const /*override*/;
34
35 virtual ::std::unique_ptr<::WorldGenerator>
36 createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry) /*override*/;
37
38 virtual bool levelChunkNeedsUpgrade(::LevelChunk const& lc) const /*override*/;
39
40 virtual void upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk) /*override*/;
41
42 virtual void fixWallChunk(::ChunkSource& source, ::LevelChunk& lc) /*override*/;
43
44 virtual short getCloudHeight() const /*override*/;
45
46 virtual ::mce::Color getBrightnessDependentFogColor(::mce::Color const& baseColor, float brightness) const
47 /*override*/;
48
49 virtual void _upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers) /*override*/;
50
51 virtual ::std::unique_ptr<::ChunkSource> _wrapStorageForVersionCompatibility(
52 ::std::unique_ptr<::ChunkSource> storageSource,
53 ::StorageVersion levelVersion
54 ) /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI explicit OverworldDimension(::DerivedDimensionArguments&& args);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(::DerivedDimensionArguments&& args);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI ::Vec3 $translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const;
73
74 MCAPI ::std::unique_ptr<::WorldGenerator>
75 $createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry);
76
77 MCFOLD bool $levelChunkNeedsUpgrade(::LevelChunk const& lc) const;
78
79 MCAPI void $upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk);
80
81 MCFOLD void $fixWallChunk(::ChunkSource& source, ::LevelChunk& lc);
82
83 MCAPI short $getCloudHeight() const;
84
85 MCAPI ::mce::Color $getBrightnessDependentFogColor(::mce::Color const& baseColor, float brightness) const;
86
87 MCFOLD void $_upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers);
88
89 MCAPI ::std::unique_ptr<::ChunkSource>
90 $_wrapStorageForVersionCompatibility(::std::unique_ptr<::ChunkSource> storageSource, ::StorageVersion levelVersion);
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
99
100 MCNAPI static void** $vftableForIDimension();
101
102 MCNAPI static void** $vftableForLevelListener();
103
104 MCNAPI static void** $vftableForSavedData();
105 // NOLINTEND
106};
Definition ChunkSource.h:37
Definition CompoundTag.h:23
Definition LevelChunk.h:79
static MCAPI void ** $vftableForLevelListener()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForIDimension()
static MCAPI void ** $vftableForSavedData()
Definition Vec3.h:10
Definition WorldGenerator.h:31
Definition StructureSetRegistry.h:12
Definition Color.h:13
Definition DerivedDimensionArguments.h:15