LeviLamina
Loading...
Searching...
No Matches
TheEndDimension.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 BlockPos;
14class ChunkSource;
15class CompoundTag;
17class EndDragonFight;
18class LevelChunk;
19class Vec3;
20class WorldGenerator;
21struct BiomeIdType;
23namespace br::worldgen { class StructureSetRegistry; }
24// clang-format on
25
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EndDragonFight>> mDragonFight;
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EndChaosLightManager>> mEndChaosLightManager;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 0
42 virtual ~TheEndDimension() /*override*/ = default;
43
44 // vIndex: 39
45 virtual void startLeaveGame() /*override*/;
46
47 // vIndex: 14
48 virtual void init(::br::worldgen::StructureSetRegistry const& structureSetRegistry) /*override*/;
49
50 // vIndex: 15
51 virtual void tick() /*override*/;
52
53 // vIndex: 24
54 virtual ::BiomeIdType getDefaultBiomeId() const /*override*/;
55
56 // vIndex: 1
57 virtual bool isNaturalDimension() const /*override*/;
58
59 // vIndex: 21
60 virtual bool isValidSpawn(int x, int z) const /*override*/;
61
62 // vIndex: 23
63 virtual short getCloudHeight() const /*override*/;
64
65 // vIndex: 25
66 virtual bool mayRespawnViaBed() const /*override*/;
67
68 // vIndex: 26
69 virtual ::BlockPos getSpawnPos() const /*override*/;
70
71 // vIndex: 27
72 virtual int getSpawnYPosition() const /*override*/;
73
74 // vIndex: 9
75 virtual ::Vec3 translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const /*override*/;
76
77 // vIndex: 1
78 virtual void deserialize(::CompoundTag const& tag) /*override*/;
79
80 // vIndex: 2
81 virtual void serialize(::CompoundTag& tag) const /*override*/;
82
83 // vIndex: 29
84 virtual float getTimeOfDay(int time, float a) const /*override*/;
85
86 // vIndex: 17
87 virtual ::std::unique_ptr<::WorldGenerator>
88 createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry) /*override*/;
89
90 // vIndex: 20
91 virtual bool levelChunkNeedsUpgrade(::LevelChunk const& lc) const /*override*/;
92
93 // vIndex: 18
94 virtual void upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk) /*override*/;
95
96 // vIndex: 19
97 virtual void fixWallChunk(::ChunkSource& source, ::LevelChunk& lc) /*override*/;
98
99 // vIndex: 31
100 virtual ::Dimension::DirectionalLightState getDimensionDirectionalLightSourceState(float a) const /*override*/;
101
102 // vIndex: 30
103 virtual void setDimensionDirectionalLightControls(
104 ::std::variant<::Dimension::ChaoticDirectionalLightControls> const& directionalLightControls
105 ) /*override*/;
106
107 // vIndex: 41
108 virtual void _upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers) /*override*/;
109
110 // vIndex: 42
111 virtual ::std::unique_ptr<::ChunkSource>
112 _wrapStorageForVersionCompatibility(::std::unique_ptr<::ChunkSource>, ::StorageVersion) /*override*/;
113 // NOLINTEND
114
115public:
116 // member functions
117 // NOLINTBEGIN
118 MCAPI explicit TheEndDimension(::DerivedDimensionArguments&& args);
119 // NOLINTEND
120
121public:
122 // constructor thunks
123 // NOLINTBEGIN
124 MCAPI void* $ctor(::DerivedDimensionArguments&& args);
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCAPI void $startLeaveGame();
131
132 MCAPI void $init(::br::worldgen::StructureSetRegistry const& structureSetRegistry);
133
134 MCAPI void $tick();
135
136 MCAPI ::BiomeIdType $getDefaultBiomeId() const;
137
138 MCFOLD bool $isNaturalDimension() const;
139
140 MCFOLD bool $isValidSpawn(int x, int z) const;
141
142 MCFOLD short $getCloudHeight() const;
143
144 MCFOLD bool $mayRespawnViaBed() const;
145
146 MCAPI ::BlockPos $getSpawnPos() const;
147
148 MCFOLD int $getSpawnYPosition() const;
149
150 MCAPI ::Vec3 $translatePosAcrossDimension(::Vec3 const& originalPos, ::DimensionType fromId) const;
151
152 MCAPI void $deserialize(::CompoundTag const& tag);
153
154 MCAPI void $serialize(::CompoundTag& tag) const;
155
156 MCFOLD float $getTimeOfDay(int time, float a) const;
157
158 MCAPI ::std::unique_ptr<::WorldGenerator>
159 $createGenerator(::br::worldgen::StructureSetRegistry const& structureSetRegistry);
160
161 MCFOLD bool $levelChunkNeedsUpgrade(::LevelChunk const& lc) const;
162
163 MCFOLD void $upgradeLevelChunk(::ChunkSource& source, ::LevelChunk& lc, ::LevelChunk& generatedChunk);
164
165 MCFOLD void $fixWallChunk(::ChunkSource& source, ::LevelChunk& lc);
166
167 MCAPI ::Dimension::DirectionalLightState $getDimensionDirectionalLightSourceState(float a) const;
168
169 MCAPI void $setDimensionDirectionalLightControls(
170 ::std::variant<::Dimension::ChaoticDirectionalLightControls> const& directionalLightControls
171 );
172
173 MCFOLD void $_upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers);
174 // NOLINTEND
175
176public:
177 // vftables
178 // NOLINTBEGIN
180
181 MCAPI static void** $vftableForIDimension();
182
183 MCNAPI static void** $vftableForSavedData();
184
185 MCNAPI static void** $vftableForLevelListener();
186 // NOLINTEND
187};
Definition AutomaticID.h:6
Definition BlockPos.h:17
Definition ChunkSource.h:36
Definition CompoundTag.h:13
Definition Dimension.h:83
Definition EndChaosLightManager.h:5
Definition EndDragonFight.h:25
Definition LevelChunk.h:78
Definition TheEndDimension.h:26
static MCAPI void ** $vftableForSavedData()
static MCAPI void ** $vftableForLevelListener()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition Vec3.h:10
Definition WorldGenerator.h:31
Definition StructureSetRegistry.h:12
Definition BiomeIdType.h:8
Definition DerivedDimensionArguments.h:14
Definition serialize.h:11