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