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/dimension/LimboEntitiesVersion.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class LevelChunk;
15class ListTag;
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 fillNegativeSubChunksWithAir(::LevelChunk& lc, ::BlockSource& region);
40
41MCAPI void fillNegativeSubChunksWithGeneration(::LevelChunk& lc, ::LevelChunk& generatedChunk);
42
43MCAPI void
44fillNegativeSubChunksWithGenerationOrAir(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
45
46MCAPI void fixStemBlockStates(::BlockSource& region, ::BlockPos updatePos, ::Block const& block);
47
48MCAPI void fixUnderwaterLavaLakes(::LevelChunk& lc, ::BlockSource&);
49
50MCAPI void fixUselessDynamicWater(::LevelChunk& lc, ::BlockSource& region);
51
52MCAPI void fixWallBlockStates(::BlockSource& region, ::BlockPos updatePos);
53
54MCAPI void fixWallChunk(::LevelChunk& lc, ::BlockSource& region);
55
56MCAPI ::std::string const& getV1CareerFromDefinitionsList(::ListTag const* definitionsList);
57
58MCAPI bool isWallBlock(::Block const& testBlock);
59
60MCAPI bool levelChunkNeedsUpgrade(::LevelChunk const& lc);
61
62MCAPI void replaceSkullsWithFlattenedVersions(::LevelChunk& levelChunk);
63
64MCAPI bool upgradeArmorStandComponents(::CompoundTag& tag);
65
66MCAPI void upgradeOldLimboEntity(::CompoundTag& tag, ::LimboEntitiesVersion vers, bool isTemplateWorld);
67
68MCAPI void upgradeWorldHeight(::LevelChunk& lc, ::LevelChunk& generatedChunk, ::BlockSource& region);
69// NOLINTEND
70
71// static variables
72// NOLINTBEGIN
73MCAPI ::std::vector<::std::string> const& V1_VILLAGER_BEHAVIORS();
74
75MCAPI ::std::vector<::std::string> const& V1_VILLAGER_CAREERS();
76// NOLINTEND
77
78} // namespace VanillaLevelChunkUpgrade
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CompoundTag.h:13
Definition LevelChunk.h:73
Definition ListTag.h:12