LeviLamina
Loading...
Searching...
No Matches
VanillaLevelChunkUpgrade.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/chunk/vanilla_level_chunk_upgrade/Axis.h"
7#include "mc/world/level/dimension/LimboEntitiesVersion.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockPos;
13class BlockSource;
14class CompoundTag;
15class LevelChunk;
16// clang-format on
17
18namespace VanillaLevelChunkUpgrade {
19// functions
20// NOLINTBEGIN
21MCAPI bool _updateBelowZero(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
22
23MCAPI void _upgradeLevelChunkLegacy(::LevelChunk& lc, ::BlockSource& region);
24
25MCAPI void _upgradeLevelChunkViaMetaData(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
26
27MCAPI bool addBiomeSpecificVillageSkins(::CompoundTag& tag, ::BlockSource& region);
28
29MCAPI bool convertOcelotTagToCat(::CompoundTag& tag);
30
31MCAPI bool convertVillagerV1TagToV2(::CompoundTag& tag);
32
33MCAPI bool convertVillagerV2TagToV1(::CompoundTag& tag);
34
35MCAPI bool convertZombieVillagerV1TagToV2(::CompoundTag& tag);
36
37MCAPI bool convertZombieVillagerV2TagToV1(::CompoundTag& tag);
38
39MCAPI void fillNegativeSubChunksWithGeneration(::LevelChunk& lc, ::LevelChunk& generatedChunk);
40
41MCAPI void
42fillNegativeSubChunksWithGenerationOrAir(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
43
44MCAPI void fixBlockStatesOnChunkBorderAxis(
45 ::BlockSource& region,
46 ::LevelChunk const& levelChunk,
47 uchar chunkAxisPos,
48 ::BlockPos pos,
49 ::VanillaLevelChunkUpgrade::Axis fixAxis
50);
51
52MCAPI void fixStemBlockStates(::BlockSource& region, ::BlockPos updatePos, ::Block const& block);
53
54MCAPI void fixUnderwaterLavaLakes(::LevelChunk& lc, ::BlockSource&);
55
56MCAPI void fixUselessDynamicWater(::LevelChunk& lc, ::BlockSource& region);
57
58MCAPI void fixWallBlockStates(::BlockSource& region, ::BlockPos updatePos);
59
60MCAPI void fixWallChunk(::LevelChunk& lc, ::BlockSource& region);
61
62MCAPI bool levelChunkNeedsUpgrade(::LevelChunk const& lc);
63
64MCAPI void replaceSkullsWithFlattenedVersions(::LevelChunk& levelChunk);
65
66MCAPI bool upgradeArmorStandComponents(::CompoundTag& tag);
67
68MCAPI void upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers, bool isTemplateWorld);
69
70MCAPI void upgradeWorldHeight(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
71// NOLINTEND
72
73// static variables
74// NOLINTBEGIN
75MCAPI ::std::vector<::std::string> const& V1_VILLAGER_BEHAVIORS();
76
77MCAPI ::std::vector<::std::string> const& V1_VILLAGER_CAREERS();
78// NOLINTEND
79
80} // namespace VanillaLevelChunkUpgrade
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition CompoundTag.h:23
Definition LevelChunk.h:87