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

SubChunkoperator= (SubChunk const &)
 
 SubChunk (SubChunk const &)
 
MCAPI SubChunk (::Block const *initBlock, bool maxSkyLight, bool fullyLit, ::SpinLockImpl &spinLock, schar absoluteIndex)
 
MCAPI void _createBlockLightStorage ()
 
MCAPI void _createSkyLightStorage ()
 
MCAPI void _resetLight (bool maxSkyLight, bool maxLight)
 
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 bool isUniform (::Block const &block) const
 
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)
 
MCAPI void setSkyLight (ushort index, uchar lightValue)
 
MCAPI void * $ctor (::Block const *initBlock, bool maxSkyLight, bool fullyLit, ::SpinLockImpl &spinLock, schar absoluteIndex)
 
MCAPI void $dtor ()
 

Static Public Member Functions

static MCAPI void flushGarbageCollectors ()
 

Public Attributes

::ll::TypedStorage< 4, 8, ::DirtyTicksCountermDirtyTicksCounter
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::SubChunkBrightnessStorage > > mSkyLight
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::SubChunkBrightnessStorage > > mBlockLight
 
::ll::TypedStorage< 1, 1, bool > mHasMaxSkyLight
 
::ll::TypedStorage< 4, 4, ::SubChunk::SubChunkState > mSubChunkState
 
::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, 8, ::SpinLockImpl * > mWriteLock
 
::ll::TypedStorage< 8, 8, uint64 > mHash
 
::ll::TypedStorage< 1, 1, bool > mHashDirty
 
::ll::TypedStorage< 1, 1, char > mAbsoluteIndex
 
::ll::TypedStorage< 1, 1, bool > mIsReplacementSubChunk
 
::ll::TypedStorage< 1, 1, uchar > mRenderChunkTrackingVersionNumber
 

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