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