LeviLamina
Loading...
Searching...
No Matches
BlockTessellatorCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/BrightnessPair.h"
7#include "mc/world/level/BlockPos.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockGraphics;
13class BlockSource;
14// clang-format on
15
17public:
18 // BlockTessellatorCache inner types declare
19 // clang-format off
20 struct LocalRegistry;
21 // clang-format on
22
23 // BlockTessellatorCache inner types define
24 struct LocalRegistry {};
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::BlockTessellatorCache::LocalRegistry> mLocalRegistry;
30 ::ll::TypedStorage<4, 12, ::BlockPos> mPos;
31 ::ll::TypedStorage<8, 8, ::BlockSource*> mRegion;
32 ::ll::TypedStorage<1, 16000, ::std::array<::BrightnessPair, 8000>> mLightColors;
33 ::ll::TypedStorage<8, 64000, ::std::array<::Block const*, 8000>> mBlocks;
34 ::ll::TypedStorage<8, 64000, ::std::array<::Block const*, 8000>> mExtraBlocks;
35 ::ll::TypedStorage<8, 128000, ::std::array<::BlockGraphics const*, 8000>[2]> mBlockGraphics;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI ::Block const& getBlock(::BlockPos const& p);
42
43 MCAPI ::BlockGraphics const* getBlockGraphics(::BlockPos const& p, ::Block const& block, uint layer);
44
45 MCAPI ::BrightnessPair getLightColor(::BlockPos const& p, ::Block const* blockHint);
46
47 MCAPI ::std::pair<::Block const*, uint> getLiquidBlockAndLayer(::BlockPos const& p);
48
49 MCAPI void reset(::BlockSource* region, ::BlockPos const& startPostion);
50
51 MCAPI void resetToAir(::BlockSource* region, ::BlockPos const& startPostion);
52 // NOLINTEND
53};
Definition BlockGraphics.h:5
Definition BlockSource.h:68
Definition BlockTessellatorCache.h:5
Definition Block.h:43
Definition BlockTessellatorCache.h:13