86 public ::std::enable_shared_from_this<::Dimension> {
99 ::ll::TypedStorage<4, 4, float> mMinFlashDuration;
100 ::ll::TypedStorage<4, 4, float> mMaxFlashDuration;
101 ::ll::TypedStorage<4, 4, float> mMinFlashCooldown;
102 ::ll::TypedStorage<4, 4, float> mMaxFlashCooldown;
110 ::ll::TypedStorage<4, 4, float> mAngle;
111 ::ll::TypedStorage<4, 4, float> mPerpendicularAngle;
112 ::ll::TypedStorage<4, 4, float> mIntensityMultiplier;
113 ::ll::TypedStorage<4, 4, ::DirectionalLightSource> mLightSource;
114 ::ll::TypedStorage<1, 1, bool> mDisableLightSource;
118 using ActorTagList = ::std::vector<::std::unique_ptr<::CompoundTag>>;
120 using ChunkPosToActorListMap = ::std::unordered_map<::ChunkPos, ::std::vector<::std::unique_ptr<::CompoundTag>>>;
122 using DirectionalLightControls = ::std::variant<::Dimension::ChaoticDirectionalLightControls>;
127 ::ll::TypedStorage<8, 24, ::std::vector<::ActorChunkTransferEntry>> mActorChunkTransferQueue;
128 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkKey, ::std::vector<::ActorUnloadedChunkTransferEntry>>>
129 mActorUnloadedChunkTransferQueue;
130 ::ll::TypedStorage<8, 8, ::ILevel&> mLevel;
131 ::ll::TypedStorage<2, 4, ::DimensionHeightRange> mHeightRange;
132 ::ll::TypedStorage<2, 2, short> mSeaLevel;
133 ::ll::TypedStorage<1, 1, uchar> mMonsterSpawnBlockLightLimit;
134 ::ll::TypedStorage<8, 32, ::IntProvider> mMonsterSpawnLightTest;
135 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mBlockSource;
136 ::ll::TypedStorage<1, 1, bool> mHasWeather;
137 ::ll::TypedStorage<4, 28, float[7]> mMobsPerChunkSurface;
138 ::ll::TypedStorage<4, 28, float[7]> mMobsPerChunkUnderground;
139 ::ll::TypedStorage<1, 2, ::BrightnessPair> mDefaultBrightness;
140 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DimensionBrightnessRamp>> mDimensionBrightnessRamp;
141 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::LevelChunkMetaData>> mTargetMetaData;
142 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RuntimeLightingManager>> mRuntimeLightingManager;
143 ::ll::TypedStorage<8, 32, ::std::string> mName;
144 ::ll::TypedStorage<8, 32, ::std::string> mTypeId;
145 ::ll::TypedStorage<4, 4, ::DimensionType> mId;
146 ::ll::TypedStorage<2, 2, ::DimensionIdType const> mRegistryId;
147 ::ll::TypedStorage<1, 1, bool> mUltraWarm;
148 ::ll::TypedStorage<1, 1, bool> mHasCeiling;
149 ::ll::TypedStorage<1, 1, bool> mHasSkylight;
150 ::ll::TypedStorage<1, 1, ::Brightness> mSkyDarken;
151 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockEventDispatcher>> mDispatcher;
152 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
153 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mChunkGenTaskGroup;
154 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PostprocessingManager>> mPostProcessingManager;
155 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SubChunkInterlocker>> mSubChunkInterlocker;
156 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkSource>> mChunkSource;
157 ::ll::TypedStorage<8, 8, ::WorldGenerator*> mWorldGenerator;
158 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Weather>> mWeather;
159 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Seasons>> mSeasons;
160 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameEventDispatcher>> mGameEventDispatcher;
161 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CircuitSystem>> mCircuitSystem;
162 ::ll::TypedStorage<4, 4, int const> CIRCUIT_TICK_RATE;
163 ::ll::TypedStorage<4, 4, int> mCircuitSystemTickRate;
164 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ActorUniqueID, ::WeakEntityRef>> mActorIDEntityIDMap;
165 ::ll::TypedStorage<8, 24, ::std::vector<::WeakEntityRef>> mDisplayEntities;
166 ::ll::TypedStorage<8, 72, ::FeatureTerrainAdjustments> mFeatureTerrainAdjustments;
167 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::vector<::std::unique_ptr<::CompoundTag>>>>
169 ::ll::TypedStorage<8, 16, ::std::set<::ActorUniqueID>> mEntitiesToMoveChunks;
170 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::TickingAreaList>> mTickingAreaList;
171 ::ll::TypedStorage<8, 632, ::LevelChunkGarbageCollector> mLevelChunkGarbageCollector;
172 ::ll::TypedStorage<8, 16, ::std::set<::ActorUniqueID>> mWitherIDs;
173 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LevelChunkBuilderData>> mLevelChunkBuilderData;
174 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastPruneTime;
175 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastStructurePruneTime;
176 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkBuildOrderPolicyBase>> mChunkBuildOrderPolicy;
177 ::ll::TypedStorage<8, 40, ::ChunkGenSessionContext> mChunkGenSessionContext;
178 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::VillageManager>> mVillageManager;
179 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Poi::Manager>> mPoiManager;
180 ::ll::TypedStorage<8, 24, ::std::vector<::NetworkIdentifierWithSubId>> mTemporaryPlayerIds;
181 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkLoadActionList>> mChunkLoadActionList;
182 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DelayActionList>> mDelayActionList;
183 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SubChunkPos, ::UpdateSubChunkBlocksChangedInfo>>
184 mBlocksChangedBySubChunkMap;
185 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IClientDimensionExtensions>> mClientExtensions;
186 ::ll::TypedStorage<8, 112, ::ActorReplication> mActorReplication;
187 ::ll::TypedStorage<8, 24, ::std::vector<::WeakEntityRef>> mPlayersToReplicate;
188 ::ll::TypedStorage<1, 1, bool> mRunChunkGenWatchDog;
193 Dimension& operator=(Dimension
const&);
194 Dimension(Dimension
const&);
200 virtual ~Dimension() ;
206 virtual void tickRedstone();
208 virtual ::std::unique_ptr<::WorldGenerator>
215 virtual void initializeWithLevelStorageManagerConnector(
219 virtual bool levelChunkNeedsUpgrade(
::LevelChunk const& lc)
const = 0;
221 virtual bool isNaturalDimension() const ;
223 virtual
bool isValidSpawn(
int x,
int z) const;
225 virtual ::mce::Color getBrightnessDependentFogColor(::mce::Color const& baseColor,
float brightness) const;
227 virtual
short getCloudHeight() const;
231 virtual
bool mayRespawnViaBed() const;
233 virtual ::
BlockPos getSpawnPos() const;
235 virtual
int getSpawnYPosition() const;
237 virtual
bool showSky() const;
239 virtual
float getTimeOfDay(
int time,
float a) const;
241 virtual
void setDimensionDirectionalLightControls(
249 virtual
void forEachPlayer(::brstd::function_ref<
bool(::
Player&)> callback) const ;
255 virtual ::
BlockSource& getBlockSourceFromMainChunkSource() const ;
261 virtual
void deserialize(::
CompoundTag const& tag) ;
265 virtual
void sendBroadcast(::
Packet const& packet, ::
Player* except);
267 virtual
bool is2DPositionRelevantForPlayer(::
BlockPos const& position, ::
Player& player) const;
269 virtual
void buildPlayersForPositionPacket(
276 sendPacketForPosition(::
BlockPos const& position, ::
Packet const& packet, ::
Player const* except) ;
278 virtual
void sendPacketForEntity(::
Actor const& actor, ::
Packet const& packet, ::
Player const* except) ;
280 virtual
bool isActorRelevantForPlayer(::
Player& player, ::
Actor const& actor) const;
282 virtual
void onBlockEvent(::
BlockSource& source,
int x,
int y,
int z,
int b0,
int b1) ;
284 virtual
void onBlockChanged(
288 ::
Block const& block,
289 ::
Block const& oldBlock,
292 ::BlockChangedEventTarget eventTarget,
293 ::
Actor* blockChangeSource
296 virtual
void onLevelDestruction(::
std::
string const&) ;
300 virtual ::
std::vector<::
std::
string> const getStructuresFromChunkRegistry(::
Vec3 const& location) const;
302 virtual ::
std::optional<::
std::
string> const getStructureFromStructureRegistry(::
Vec3 const& location) const;
304 virtual
void startLeaveGame();
306 virtual
void flushLevelChunkGarbageCollector() ;
308 virtual
void updatePoiBlockStateChange(::
BlockPos pos, ::
Block const& removed, ::
Block const& placed) const
313 virtual
void _upgradeOldLimboEntity(::
CompoundTag& tag, ::LimboEntitiesVersion vers) = 0;
315 virtual ::
std::unique_ptr<::
ChunkSource> _wrapStorageForVersionCompatibility(
317 ::StorageVersion levelVersion
326 MCAPI
void _addActorUnloadedChunkTransferToQueue(
330 ::
std::
string& actorStorageKey,
336 MCAPI
void _tickEntityChunkMoves();
340 MCAPI ::
Player* fetchNearestInteractablePlayer(::
Vec3 const& searchPos,
float maxDist) const;
342 MCAPI
void flagEntityforChunkMove(::
Actor& e);
344 MCAPI
void flushRunTimeLighting();
349 MCAPI
float getSkyDarken(
float a)
const;
351 MCAPI
float getSunAngle(
float a)
const;
353 MCAPI
float getTimeOfDay(
float a)
const;
361 transferEntity(
::ChunkPos const& fromChunkPos,
::Vec3 const& spawnPos, ::std::unique_ptr<::CompoundTag> entityTag);
363 MCAPI
void tryLoadLimboEntities(
::ChunkPos const& loadPos);
371 MCAPI static ::std::add_lvalue_reference_t<float const[]> MOON_BRIGHTNESS_PER_PHASE();
393 MCAPI
void $tickRedstone();
398 MCFOLD
bool $isNaturalDimension()
const;
400 MCFOLD
bool $isValidSpawn(
int x,
int z)
const;
402 MCAPI ::mce::Color $getBrightnessDependentFogColor(
::mce::Color const& baseColor,
float brightness)
const;
404 MCAPI
short $getCloudHeight()
const;
407 MCAPI ::BiomeIdType $getDefaultBiomeId()
const;
409 MCFOLD ::BiomeIdType $getDefaultBiomeId()
const;
412 MCFOLD
bool $mayRespawnViaBed()
const;
414 MCFOLD ::BlockPos $getSpawnPos()
const;
416 MCFOLD
int $getSpawnYPosition()
const;
418 MCFOLD
bool $showSky()
const;
420 MCAPI
float $getTimeOfDay(
int time,
float a)
const;
422 MCFOLD
void $setDimensionDirectionalLightControls(
423 ::std::variant<::Dimension::ChaoticDirectionalLightControls>
const& directionalLightControls
426 MCAPI ::Dimension::DirectionalLightState $getDimensionDirectionalLightSourceState(
float a)
const;
428 MCAPI ::DimensionType $getDimensionId()
const;
432 MCFOLD ::BiomeRegistry& $getBiomeRegistry();
434 MCFOLD ::BiomeRegistry
const& $getBiomeRegistry()
const;
436 MCFOLD ::BlockSource& $getBlockSourceFromMainChunkSource()
const;
438 MCAPI ::Actor* $fetchEntity(
::ActorUniqueID actorID,
bool getRemoved)
const;
448 MCAPI
bool $is2DPositionRelevantForPlayer(
::BlockPos const& position,
::Player& player)
const;
450 MCAPI
void $buildPlayersForPositionPacket(
453 ::std::vector<::NetworkIdentifierWithSubId>& result
460 MCAPI
bool $isActorRelevantForPlayer(
::Player& player,
::Actor const& actor)
const;
462 MCAPI
void $onBlockEvent(
::BlockSource& source,
int x,
int y,
int z,
int b0,
int b1);
464 MCAPI
void $onBlockChanged(
472 ::BlockChangedEventTarget eventTarget,
476 MCAPI
void $onLevelDestruction(::std::string
const&);
478 MCFOLD ::DimensionBrightnessRamp
const& $getBrightnessRamp()
const;
480 MCAPI ::std::vector<::std::string>
const $getStructuresFromChunkRegistry(
::Vec3 const& location)
const;
482 MCAPI ::std::optional<::std::string>
const $getStructureFromStructureRegistry(
::Vec3 const& location)
const;
484 MCAPI
void $startLeaveGame();
486 MCAPI
void $flushLevelChunkGarbageCollector();
490 MCAPI ::std::unique_ptr<::ChunkBuildOrderPolicyBase> $_createChunkBuildOrderPolicy();