Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SubChunk Struct Reference

Public Types

enum class  BlockLayer : uchar { Standard = 0 , Extra = 1 , Count = 2 }
enum class  SubChunkState : int {
  Invalid = -1 , Normal = 0 , IsLightingSystemSubChunk = 1 , NeedsRequest = 2 ,
  ReceivedResponseFromServer = 3 , ProcessingSubChunk = 4 , WaitingForCacheResponse = 5 , ProcessedSubChunk = 6 ,
  RequestFinished = 7
}
using Layer = uchar

Public Member Functions

bool isUniform (::Block const &block) const
SubChunk & operator= (SubChunk const &)
 SubChunk (SubChunk const &)
MCAPI SubChunk (::SubChunk &&rhs)
MCAPI SubChunk (::Block const *initBlock, bool maxSkyLight, bool maxLight, schar absoluteIndex)
MCAPI void _setBlock (uchar layer, ushort index, ::Block const &block)
MCAPI void deserialize (::IDataInput &stream, ::BlockPalette const &palette, ::SubChunkPos const &subChunkPos, ::std::optional<::DeserializationChanges * > deserializationChanges)
MCAPI void fetchBlocks (::BlockPos const &subChunkOrigin, ::BlockPos const &volumeOrigin, short dimensionMinHeight, ::BlockVolume &volume) const
MCAPI void initialize (::Block const *initBlock, bool maxSkyLight, bool maxLight, schar absoluteIndex)
MCAPI::SubChunk & operator= (::SubChunk &&rhs)
MCAPI void prune (::SubChunkStorageUnit::PruneType pruneType)
MCAPI::std::string recalculateHashAndSerialize (bool network)
MCAPI void reset (::Block const *resetBlock, bool maxSkyLight, bool fullyLit)
MCAPI void serialize (::IDataOutput &stream, bool network) const
MCAPI void setBlocksToUniform (::Block const &initBlock, bool maxSkyLight, bool fullyLit)
MCAPI void setFromBlockVolume (::BlockVolume const &box, short height, ::ChunkVolume::SubVolumeViewOf<::Block const * > scratchVolume)
MCAPI ~SubChunk ()
MCAPI void * $ctor (::SubChunk &&rhs)
MCAPI void * $ctor (::Block const *initBlock, bool maxSkyLight, bool maxLight, schar absoluteIndex)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 4, 8, ::DirtyTicksCounter > mDirtyTicksCounter
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::SubChunkBrightnessStorage > > mSkyLight
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::SubChunkBrightnessStorage > > mBlockLight
::ll::TypedStorage< 4, 4, ::SubChunk::SubChunkState > mSubChunkState
::ll::TypedStorage< 1, 1, bool > mHasMaxSkyLight
::ll::TypedStorage< 1, 1, bool > mNeedsInitLighting
::ll::TypedStorage< 1, 1, bool > mNeedsClientLighting
::ll::TypedStorage< 8, 16, ::std::unique_ptr<::SubChunkStorage<::Block > >[2]> mBlocks
::ll::TypedStorage< 8, 16, ::SubChunkStorage<::Block > *[2]> mBlocksReadPtr
::ll::TypedStorage< 8, 24, ::SpinLockImpl > mWriteLock
::ll::TypedStorage< 8, 8, uint64 > mHash
::ll::TypedStorage< 1, 1, bool > mHashDirty
::ll::TypedStorage< 1, 1, schar > mAbsoluteIndex
::ll::TypedStorage< 1, 1, bool > mIsReplacementSubChunk
::ll::TypedStorage< 1, 1, uchar > mRenderChunkTrackingVersionNumber
::ll::TypedStorage< 1, 1, bool > mIsInitialized

Constructor & Destructor Documentation

◆ SubChunk() [1/2]

MCAPI SubChunk::SubChunk ( ::SubChunk && rhs)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ SubChunk() [2/2]

MCAPI SubChunk::SubChunk ( ::Block const * initBlock,
bool maxSkyLight,
bool maxLight,
schar absoluteIndex )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ ~SubChunk()

MCAPI SubChunk::~SubChunk ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _setBlock()

MCAPI void SubChunk::_setBlock ( uchar layer,
ushort index,
::Block const & block )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ deserialize()

MCAPI void SubChunk::deserialize ( ::IDataInput & stream,
::BlockPalette const & palette,
::SubChunkPos const & subChunkPos,
::std::optional<::DeserializationChanges * > deserializationChanges )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ fetchBlocks()

MCAPI void SubChunk::fetchBlocks ( ::BlockPos const & subChunkOrigin,
::BlockPos const & volumeOrigin,
short dimensionMinHeight,
::BlockVolume & volume ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initialize()

MCAPI void SubChunk::initialize ( ::Block const * initBlock,
bool maxSkyLight,
bool maxLight,
schar absoluteIndex )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator=()

MCAPI::SubChunk & SubChunk::operator= ( ::SubChunk && rhs)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ prune()

MCAPI void SubChunk::prune ( ::SubChunkStorageUnit::PruneType pruneType)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ recalculateHashAndSerialize()

MCAPI::std::string SubChunk::recalculateHashAndSerialize ( bool network)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ reset()

MCAPI void SubChunk::reset ( ::Block const * resetBlock,
bool maxSkyLight,
bool fullyLit )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setBlocksToUniform()

MCAPI void SubChunk::setBlocksToUniform ( ::Block const & initBlock,
bool maxSkyLight,
bool fullyLit )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setFromBlockVolume()

MCAPI void SubChunk::setFromBlockVolume ( ::BlockVolume const & box,
short height,
::ChunkVolume::SubVolumeViewOf<::Block const * > scratchVolume )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor() [1/2]

MCAPI void * SubChunk::$ctor ( ::SubChunk && rhs)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor() [2/2]

MCAPI void * SubChunk::$ctor ( ::Block const * initBlock,
bool maxSkyLight,
bool maxLight,
schar absoluteIndex )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void SubChunk::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this struct was generated from the following file: