Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BlockStateGroup Class Reference

Public Member Functions

MCAPI::BlockStateMeta const * getBlockStateFromHash (uint64 const &h) const
MCAPI::BlockStateMeta const * getBlockStateFromName (::std::string const &name) const
MCAPI void registerBlockStateDefinition (::BlockStateDefinition const &def)
MCAPI void registerExistingBlockState (::BlockState const &state)
MCAPI void * $ctor ()
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool loadBlockStateFromJson (::BlockStateDefinition &blockState, ::std::string const &name, ::Json::Value const &root)

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::CustomBlockStateVariant > > > mRegisteredBlockStates
::ll::TypedStorage< 8, 128, ::BidirectionalUnorderedMap< uint64, ::std::string > > mHashNames
::ll::TypedStorage< 8, 128, ::BidirectionalUnorderedMap< int, uint64 > > mIdNames
::ll::TypedStorage< 8, 16, ::std::map< int, ::std::unique_ptr<::BlockStateMeta > > > mBlockStates
::ll::TypedStorage< 8, 16, ::std::map< int, ::std::unique_ptr<::BlockStateMeta > > > mJsonBlockStates
::ll::TypedStorage< 8, 8, uint64 > lastStateID

Member Function Documentation

◆ getBlockStateFromHash()

MCAPI::BlockStateMeta const * BlockStateGroup::getBlockStateFromHash ( uint64 const & h) 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.

◆ getBlockStateFromName()

MCAPI::BlockStateMeta const * BlockStateGroup::getBlockStateFromName ( ::std::string const & name) 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.

◆ loadBlockStateFromJson()

MCAPI bool BlockStateGroup::loadBlockStateFromJson ( ::BlockStateDefinition & blockState,
::std::string const & name,
::Json::Value const & root )
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.

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