Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockHashPalette Class Reference
Inheritance diagram for BlockHashPalette:

Public Types

enum class  PaletteType : int { Sequential = 0 , Hashed = 1 }

Public Member Functions

virtual::BlockPalette::PaletteType getPaletteType ()
virtual void appendBlock (::Block const &block)
virtual::Block const & getBlock (uint const &networkId) const
virtual void assignBlockNetworkId (::Block const &block, uint64 networkId) const
MCAPI BlockHashPalette (::Level &level)
MCAPI void * $ctor (::Level &level)
MCAPI::BlockPalette::PaletteType $getPaletteType ()
MCAPI void $appendBlock (::Block const &block)
MCAPI::Block const & $getBlock (uint const &networkId) const
MCAPI void $assignBlockNetworkId (::Block const &block, uint64 networkId) const
LLAPI void initFromBlockDefinitions ()
 Walks every registered block type and appends each of its permutations to this palette.
MCAPI void cacheBlockComponentData ()
MCAPI::Block const & getBlockFromLegacyData (::NewBlockID id, uint data) const
MCAPI bool shouldWarnFor (::NewBlockID id, ushort data) const
MCAPI::Block const & switchBlock (::Block const &oldBlock, ::BlockType const &newBlockType) const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI ::Block const & convertLegacyBlock (::BlockID id, ushort data)
static MCAPI bool convertLegacyBlocks (::buffer_span_mut<::Block const * > dst, ::buffer_span<::BlockID > blockIDs, ::buffer_span<::NibblePair > data, uint64 volume)

Public Attributes

::ll::TypedStorage< 8, 16, ::std::map< uint, uint64 > > mNetworkIdToPaletteIndexMap
::ll::TypedStorage< 8, 80, ::std::mutex > mLegacyBlockStatesConversionWarningMutex
::ll::TypedStorage< 8, 16, ::std::set<::std::pair< int, int > > > mLegacyBlockStatesConversionWarningSet
::ll::TypedStorage< 8, 24, ::std::vector<::Block const * > > mBlockFromNetworkId
::ll::TypedStorage< 8, 8, ::Level * > mLevel

Constructor & Destructor Documentation

◆ BlockHashPalette()

MCAPI BlockHashPalette::BlockHashPalette ( ::Level & level)
explicit
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

◆ appendBlock()

virtual void BlockHashPalette::appendBlock ( ::Block const & block)
virtual

Reimplemented from BlockPalette.

◆ assignBlockNetworkId()

virtual void BlockHashPalette::assignBlockNetworkId ( ::Block const & block,
uint64 networkId ) const
virtual

Reimplemented from BlockPalette.

◆ $ctor()

MCAPI void * BlockHashPalette::$ctor ( ::Level & level)
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.

◆ $getPaletteType()

MCAPI::BlockPalette::PaletteType BlockHashPalette::$getPaletteType ( )
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.

◆ $appendBlock()

MCAPI void BlockHashPalette::$appendBlock ( ::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.

◆ $getBlock()

MCAPI::Block const & BlockHashPalette::$getBlock ( uint const & networkId) 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.

◆ $assignBlockNetworkId()

MCAPI void BlockHashPalette::$assignBlockNetworkId ( ::Block const & block,
uint64 networkId ) 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.

◆ $vftable()

MCAPI void ** BlockHashPalette::$vftable ( )
static
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.

◆ getBlockFromLegacyData()

MCAPI::Block const & BlockPalette::getBlockFromLegacyData ( ::NewBlockID id,
uint data ) const
inherited
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.

◆ shouldWarnFor()

MCAPI bool BlockPalette::shouldWarnFor ( ::NewBlockID id,
ushort data ) const
inherited
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.

◆ switchBlock()

MCAPI::Block const & BlockPalette::switchBlock ( ::Block const & oldBlock,
::BlockType const & newBlockType ) const
inherited
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.

◆ convertLegacyBlock()

MCAPI ::Block const & BlockPalette::convertLegacyBlock ( ::BlockID id,
ushort data )
staticinherited
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.

◆ convertLegacyBlocks()

MCAPI bool BlockPalette::convertLegacyBlocks ( ::buffer_span_mut<::Block const * > dst,
::buffer_span<::BlockID > blockIDs,
::buffer_span<::NibblePair > data,
uint64 volume )
staticinherited
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 BlockPalette::$dtor ( )
inherited
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 class was generated from the following file: