LeviLamina
Loading...
Searching...
No Matches
CachedChunkBlockSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Block;
8class BlockPos;
9class BlockSource;
10class ChunkPos;
11class LevelChunk;
12class Material;
13struct SubChunk;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::BlockSource&> mBlockSource;
21 ::ll::TypedStorage<2, 2, short> mMinHeight;
22 ::ll::TypedStorage<8, 8, ::ChunkPos> mPreviousChunkPos;
23 ::ll::TypedStorage<2, 2, short> mPreviousSubChunkHeight;
24 ::ll::TypedStorage<8, 8, ::LevelChunk const*> mPreviousLevelChunk;
25 ::ll::TypedStorage<8, 8, ::SubChunk const*> mPreviousSubChunk;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ushort _updateCacheAndGetIndex(::BlockPos const& position);
32
33 MCAPI ::Block const& getBlock(::BlockPos const& position);
34
35 MCAPI ::Block const& getLiquidBlock(::BlockPos const& position);
36
37 MCAPI ::Material const& getMaterial(::BlockPos const& pos);
38 // NOLINTEND
39};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CachedChunkBlockSource.h:16
Definition ChunkPos.h:11
Definition LevelChunk.h:73
Definition Material.h:8
Definition SubChunk.h:24