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
43 ::LevelChunk& generatedChunk,
44 ::LevelChunk& lc,
45 ::ConsoleChunkBlender::ShiftBlockTypes const shiftBlockType
46 );
47
48 MCNAPI ::ChunkLocalHeight _findTopMostWaterHeight(
49 ::LevelChunk& lc,
50 int x,
51 int z,
52 ::std::unordered_set<::BlockType const*> const& waterBlocks
53 );
54
55 MCNAPI void _prepInterpTable();
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCNAPI static void _shiftColumnBySetBlocks(
62 ::LevelChunk& lc,
63 int x,
64 int z,
65 int adj,
66 bool isSeaBlock,
67 ::ChunkLocalHeight const topSeaBlockHeight,
68 ::ConsoleChunkBlender::ShiftBlockTypes const shiftBlockType,
69 ::OverworldBlendRules const& blendRules
70 );
71 // NOLINTEND
72};
Definition BlockType.h:79
Definition ChunkLocalHeight.h:5
Definition ConsoleChunkBlender.h:14
MCAPI void _blendChunkOverworld(::LevelChunk &generatedChunk, ::LevelChunk &lc, ::ConsoleChunkBlender::ShiftBlockTypes const shiftBlockType)
MCAPI void _prepInterpTable()
static MCAPI void _shiftColumnBySetBlocks(::LevelChunk &lc, int x, int z, int adj, bool isSeaBlock, ::ChunkLocalHeight const topSeaBlockHeight, ::ConsoleChunkBlender::ShiftBlockTypes const shiftBlockType, ::OverworldBlendRules const &blendRules)
MCAPI::ChunkLocalHeight _findTopMostWaterHeight(::LevelChunk &lc, int x, int z, ::std::unordered_set<::BlockType const * > const &waterBlocks)
Definition LevelChunk.h:77
Definition PerlinSimplexNoise.h:11
Definition OverworldBlendRules.h:8