LeviLamina
Loading...
Searching...
No Matches
NetherDimension.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;
18struct BiomeIdType;
20namespace br::worldgen { class StructureSetRegistry; }
21// clang-format on
22
24public:
25 // prevent constructor by default
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 0
32 virtual ~NetherDimension() /*override*/ = default;
33
34 // vIndex: 14
35 virtual void init(::br::worldgen::StructureSetRegistry const& structureSetRegistry) /*override*/;
36
37 // vIndex: 24
38 virtual ::BiomeIdType getDefaultBiomeId() const /*override*/;
39
40 // vIndex: 1
41 virtual bool isNaturalDimension() const /*override*/;
42
43 // vIndex: 21
44 virtual bool isValidSpawn(int x, int z) const /*override*/;
45
46 // vIndex: 28
47 virtual bool showSky() const /*override*/;
48
49 // vIndex: 29
50 virtual float getTimeOfDay(int time, float a) const /*override*/;
51
52 // vIndex: 25
53 virtual bool mayRespawnViaBed() const /*override*/;
54
55 // vIndex: 9
56 virtual ::Vec3 translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const /*override*/;
57
58 // vIndex: 17
59 virtual ::std::unique_ptr<::WorldGenerator>
60 createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry) /*override*/;
61
62 // vIndex: 20
63 virtual bool levelChunkNeedsUpgrade(::LevelChunk const& lc) const /*override*/;
64
65 // vIndex: 18
66 virtual void upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk) /*override*/;
67
68 // vIndex: 19
69 virtual void fixWallChunk(::ChunkSource& source, ::LevelChunk& lc) /*override*/;
70
71 // vIndex: 41
72 virtual void _upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers) /*override*/;
73
74 // vIndex: 42
75 virtual ::std::unique_ptr<::ChunkSource> _wrapStorageForVersionCompatibility(
76 ::std::unique_ptr<::ChunkSource> storageSource,
77 ::StorageVersion levelVersion
78 ) /*override*/;
79 // NOLINTEND
80
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI explicit NetherDimension(::DerivedDimensionArguments&& args);
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void* $ctor(::DerivedDimensionArguments&& args);
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI void $init(::br::worldgen::StructureSetRegistry const& structureSetRegistry);
97
98 MCAPI ::BiomeIdType $getDefaultBiomeId() const;
99
100 MCFOLD bool $isNaturalDimension() const;
101
102 MCFOLD bool $isValidSpawn(int x, int z) const;
103
104 MCFOLD bool $showSky() const;
105
106 MCFOLD float $getTimeOfDay(int time, float a) const;
107
108 MCFOLD bool $mayRespawnViaBed() const;
109
110 MCAPI ::Vec3 $translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const;
111
112 MCAPI ::std::unique_ptr<::WorldGenerator>
113 $createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry);
114
115 MCFOLD bool $levelChunkNeedsUpgrade(::LevelChunk const& lc) const;
116
117 MCFOLD void $upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk);
118
119 MCFOLD void $fixWallChunk(::ChunkSource& source, ::LevelChunk& lc);
120
121 MCFOLD void $_upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers);
122
123 MCFOLD ::std::unique_ptr<::ChunkSource>
124 $_wrapStorageForVersionCompatibility(::std::unique_ptr<::ChunkSource> storageSource, ::StorageVersion levelVersion);
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
131
132 MCAPI static void** $vftableForIDimension();
133
134 MCNAPI static void** $vftableForSavedData();
135
136 MCNAPI static void** $vftableForLevelListener();
137 // NOLINTEND
138};
Definition AutomaticID.h:6
Definition ChunkSource.h:36
Definition CompoundTag.h:13
Definition Dimension.h:83
Definition LevelChunk.h:78
Definition NetherDimension.h:23
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForLevelListener()
static MCAPI void ** $vftableForSavedData()
Definition Vec3.h:10
Definition WorldGenerator.h:31
Definition StructureSetRegistry.h:12
Definition BiomeIdType.h:8
Definition DerivedDimensionArguments.h:14