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

Classes

class  ResolveHelper
class  ResolvedState
struct  State

Public Types

enum class  CompareType : int { AnyTag = 0 , BlockName = 1 , States = 2 , Unknown = 3 }
using CompoundProxy = ::SharedTypes::Legacy::BlockDescriptor::Compound

Public Member Functions

MCAPI BlockDescriptor (::SharedTypes::Legacy::BlockDescriptor desc)
MCAPI BlockDescriptor (::HashedString const &fullName)
MCAPI BlockDescriptor (::BlockDescriptor &&rhs)
MCAPI BlockDescriptor (::BlockDescriptor const &rhs)
MCAPI BlockDescriptor (::std::string const &name, ::std::vector<::BlockDescriptor::State > &&states)
MCAPI bool _anyTagsMatch (::Block const &block) const
MCAPI bool _statesMatch (::Block const &block) const
MCAPI::Block const & getBlockOrUnknownBlock () const
MCAPI::BlockDescriptor::CompareType const & getCompareType () const
MCAPI::std::string const & getFullName () const
MCAPI bool isValid () const
MCAPI bool matches (::Block const &block) const
MCAPI bool matches (::BlockDescriptor const &otherDescriptor) const
MCAPI void operator= (::BlockDescriptor &&rhs)
MCAPI void operator= (::BlockDescriptor const &rhs)
MCAPI ::std::unique_ptr<::CompoundTag > toCompoundTag () const
MCAPI::Block const * tryGetBlock () const
MCAPI::Block const * tryGetBlockNoLogging () const
MCAPI void * $ctor (::SharedTypes::Legacy::BlockDescriptor desc)
MCAPI void * $ctor (::HashedString const &fullName)
MCAPI void * $ctor (::BlockDescriptor &&rhs)
MCAPI void * $ctor (::BlockDescriptor const &rhs)
MCAPI void * $ctor (::std::string const &name, ::std::vector<::BlockDescriptor::State > &&states)
MCAPI void $dtor ()

Static Public Member Functions

static bool anyMatch (::std::vector<::BlockDescriptor > const &blockDescriptors, ::Block const &block)
static MCAPI void bindType (::cereal::ReflectionCtx &ctx)
static MCAPI ::BlockDescriptor fromCompoundTag (::CompoundTag const &tag)
static MCAPI ::BlockDescriptor fromTagExpression (::std::string const &tagExpression, ::MolangVersion molangVersion)
static MCAPI ::SharedTypes::Legacy::BlockDescriptor toSharedTypes (::BlockDescriptor const &instance)
static MCAPI ::std::add_lvalue_reference_t< char const[]> JSON_NAME_FIELD ()
static MCAPI ::std::add_lvalue_reference_t< char const[]> JSON_STATES_FIELD ()
static MCAPI ::std::add_lvalue_reference_t< char const[]> JSON_TAGS_FIELD ()

Public Attributes

::ll::TypedStorage< 8, 8, ::BlockDescriptor::ResolveHelper > mResolveHelper
::ll::TypedStorage< 8, 48, ::HashedString > mBlockName
::ll::TypedStorage< 1, 1, bool > mIsComplexAlias
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::ExpressionNode > > mTags
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor::State > > mRawStates
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor::ResolvedState > > mResolvedStates
::ll::TypedStorage< 4, 4, ::BlockDescriptor::CompareType > mCompareType
::ll::TypedStorage< 1, 1, bool > mContentLogOnError
::ll::TypedStorage< 8, 8, ::Block const * > mBlock
::ll::TypedStorage< 1, 1, bool > mValid
::ll::TypedStorage< 1, 1, bool > mIsDeferred
::ll::TypedStorage< 8, 24, ::SpinLockImpl > mLock

Constructor & Destructor Documentation

◆ BlockDescriptor() [1/2]

MCAPI BlockDescriptor::BlockDescriptor ( ::SharedTypes::Legacy::BlockDescriptor desc)
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.

◆ BlockDescriptor() [2/2]

MCAPI BlockDescriptor::BlockDescriptor ( ::std::string const & name,
::std::vector<::BlockDescriptor::State > && states )
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

◆ _anyTagsMatch()

MCAPI bool BlockDescriptor::_anyTagsMatch ( ::Block const & block) 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.

◆ _statesMatch()

MCAPI bool BlockDescriptor::_statesMatch ( ::Block const & block) 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.

◆ getCompareType()

MCAPI::BlockDescriptor::CompareType const & BlockDescriptor::getCompareType ( ) 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.

◆ getFullName()

MCAPI::std::string const & BlockDescriptor::getFullName ( ) 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.

◆ isValid()

MCAPI bool BlockDescriptor::isValid ( ) 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.

◆ matches()

MCAPI bool BlockDescriptor::matches ( ::BlockDescriptor const & otherDescriptor) 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.

◆ operator=() [1/2]

MCAPI void BlockDescriptor::operator= ( ::BlockDescriptor && 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.

◆ operator=() [2/2]

MCAPI void BlockDescriptor::operator= ( ::BlockDescriptor const & 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.

◆ toCompoundTag()

MCAPI ::std::unique_ptr<::CompoundTag > BlockDescriptor::toCompoundTag ( ) 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.

◆ tryGetBlockNoLogging()

MCAPI::Block const * BlockDescriptor::tryGetBlockNoLogging ( ) 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.

◆ bindType()

MCAPI void BlockDescriptor::bindType ( ::cereal::ReflectionCtx & ctx)
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.

◆ fromCompoundTag()

MCAPI ::BlockDescriptor BlockDescriptor::fromCompoundTag ( ::CompoundTag const & tag)
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.

◆ fromTagExpression()

MCAPI ::BlockDescriptor BlockDescriptor::fromTagExpression ( ::std::string const & tagExpression,
::MolangVersion molangVersion )
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.

◆ toSharedTypes()

MCAPI ::SharedTypes::Legacy::BlockDescriptor BlockDescriptor::toSharedTypes ( ::BlockDescriptor const & instance)
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.

◆ JSON_NAME_FIELD()

MCAPI ::std::add_lvalue_reference_t< char const []> BlockDescriptor::JSON_NAME_FIELD ( )
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.

◆ JSON_STATES_FIELD()

MCAPI ::std::add_lvalue_reference_t< char const []> BlockDescriptor::JSON_STATES_FIELD ( )
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.

◆ JSON_TAGS_FIELD()

MCAPI ::std::add_lvalue_reference_t< char const []> BlockDescriptor::JSON_TAGS_FIELD ( )
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.

◆ $ctor() [1/2]

MCAPI void * BlockDescriptor::$ctor ( ::SharedTypes::Legacy::BlockDescriptor desc)
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 * BlockDescriptor::$ctor ( ::std::string const & name,
::std::vector<::BlockDescriptor::State > && states )
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: