18class ChunkBlenderFactory {
31 ::ll::TypedStorage<8, 8, ::ChunkPos> checkPosition;
32 ::ll::TypedStorage<1, 1, bool> adjacentChunk;
40 ::ll::TypedStorage<4, 4, float> mDistanceToBlendTarget;
41 ::ll::TypedStorage<4, 4, float> mWeightedHeight;
42 ::ll::TypedStorage<4, 4, float> mTotalHeightWeight;
43 ::ll::TypedStorage<4, 4, float> mTotalDensityWeight;
44 ::ll::TypedStorage<4, 164, ::std::array<::ScalarOptional<float>, 41>> mWeightedDensities;
45 ::ll::TypedStorage<1, 41, ::std::array<::ScalarOptional<schar>, 41>> mBlockTypeWeights;
46 ::ll::TypedStorage<2, 192, ::std::array<::ScalarOptional<::BiomeIdType>, 96>> mBiome;
47 ::ll::TypedStorage<1, 1, bool> mHaveBlockTypes;
48 ::ll::TypedStorage<1, 1, bool> mSyncPoint;
52 using ChunkIntermediateAttenuationData =
53 ::std::vector<::std::array<::ChunkBlenderFactory::IntermediateAttenuationData, 4>>;
58 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::shared_ptr<::ChunkBlender>>> mAttenuatorCache;
59 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mAttenuatorSharedMutex;
60 ::ll::TypedStorage<1, 1, bool const> mIsClientSide;
61 ::ll::TypedStorage<8, 8, ::ChunkSource*> mChunkSource;
62 ::ll::TypedStorage<2, 2, short const> mDimensionMinHeight;
67 ChunkBlenderFactory();
72 MCAPI ChunkBlenderFactory(
bool isClientSide,
short dimensionMinHeight);
74 MCAPI ::std::shared_ptr<::ChunkBlender> _createChunkBlendingAttenuator(
::ChunkPos const& lcPosition)
const;
76 MCAPI ::std::vector<::std::array<::ChunkBlenderUtil::AttenuationData, 4>> _finalizeChunkAttenuationData(
77 ::std::vector<::std::array<::ChunkBlenderFactory::IntermediateAttenuationData, 4>>
const&
78 chunkIntermediateAttenuationData
81 MCAPI
void _updateIntermediateAttenuationData(
82 ::std::vector<::std::array<::ChunkBlenderFactory::IntermediateAttenuationData, 4>>&
83 chunkIntermediateAttenuationData,
90 MCAPI
void freeChunkBlenderCache();
92 MCAPI ::std::shared_ptr<::ChunkBlender> getOrCreateChunkBlender(
::ChunkPos const& lcPosition);
94 MCFOLD
bool isClientSide()
const;
100 MCAPI
void* $ctor(
bool isClientSide,
short dimensionMinHeight);
Definition ChunkBlenderFactory.h:27