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