LeviLamina
Loading...
Searching...
No Matches
ConsoleChunkBlender.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BlockType;
9class LevelChunk;
12// clang-format on
13
15public:
16 // ConsoleChunkBlender inner types define
17 enum class BlenderMode : int {
18 None = 0,
19 Overworld4J = 1,
20 OverworldCliffsAndCaves = 2,
21 Nether4J = 3,
22 NetherUpdate = 4,
23 End4J = 5,
24 };
25
26 enum class ShiftBlockTypes : int {
27 ConsoleBlend = 0,
28 TerrainGenChanged = 1,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PerlinSimplexNoise>> mConversionBlendNoise;
35 ::ll::TypedStorage<4, 16, float[2][2]> mInterpCorners;
36 ::ll::TypedStorage<4, 1024, float[16][16]> mInterpTable;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI void _blendChunkEnd4J(::LevelChunk& generatedChunk, ::LevelChunk& lc);
43
44 MCNAPI void _blendChunkNether(::LevelChunk& generatedChunk, ::LevelChunk& lc);
45
46 MCNAPI void _blendChunkNether4J(::LevelChunk& generatedChunk, ::LevelChunk& lc);
47
49 ::LevelChunk& generatedChunk,
50 ::LevelChunk& lc,
51 ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType
52 );
53
54 MCNAPI void _copyColumnFromGeneratedChunkNether(::LevelChunk& generatedChunk, ::LevelChunk& lc, int x, int z);
55
57 ::LevelChunk& generatedChunk,
58 ::LevelChunk& lc,
59 int x,
60 int z,
61 ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType
62 );
63
64 MCNAPI ::ChunkLocalHeight _findTopMostWaterHeight(
65 ::LevelChunk& lc,
66 int x,
67 int z,
68 ::std::unordered_set<::BlockType const*> const& waterBlocks
69 );
70
71 MCNAPI void _prepInterpTable();
72
74 ::LevelChunk& lc,
75 int x,
76 int z,
77 int adj,
78 bool isSeaBlock,
79 ::ChunkLocalHeight topSeaBlockHeight,
80 ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType,
81 ::OverworldBlendRules const& blendRules
82 );
83
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCNAPI void $dtor();
91 // NOLINTEND
92};
Definition BlockType.h:84
Definition ChunkLocalHeight.h:5
Definition ConsoleChunkBlender.h:14
MCAPI void $dtor()
MCAPI void _blendChunkEnd4J(::LevelChunk &generatedChunk, ::LevelChunk &lc)
MCAPI void _copyColumnFromGeneratedChunkOverworld(::LevelChunk &generatedChunk, ::LevelChunk &lc, int x, int z, ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType)
MCAPI void _copyColumnFromGeneratedChunkNether(::LevelChunk &generatedChunk, ::LevelChunk &lc, int x, int z)
MCAPI void _prepInterpTable()
MCAPI void _shiftColumnBySetBlocks(::LevelChunk &lc, int x, int z, int adj, bool isSeaBlock, ::ChunkLocalHeight topSeaBlockHeight, ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType, ::OverworldBlendRules const &blendRules)
MCAPI ~ConsoleChunkBlender()
MCAPI void _blendChunkNether(::LevelChunk &generatedChunk, ::LevelChunk &lc)
MCAPI void _blendChunkNether4J(::LevelChunk &generatedChunk, ::LevelChunk &lc)
MCAPI::ChunkLocalHeight _findTopMostWaterHeight(::LevelChunk &lc, int x, int z, ::std::unordered_set<::BlockType const * > const &waterBlocks)
MCAPI void _blendChunkOverworld(::LevelChunk &generatedChunk, ::LevelChunk &lc, ::ConsoleChunkBlender::ShiftBlockTypes shiftBlockType)
Definition LevelChunk.h:87
Definition PerlinSimplexNoise.h:13
Definition OverworldBlendRules.h:8