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

Classes

struct  ResourceReference

Public Types

using GetParticleTintFunc = ::std::function<::mce::Color(::Block const&, ::BlockSource&, ::BlockPos const&)>
using IComplexExpression = ::Molang::details::IComplexExpression
using MissingResourceSet
using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>

Public Member Functions

 ExpressionNode (std::string const &expression, ::MolangVersion molangVersion, ::gsl::span<::HashedString const > querySetID)
LLAPI MolangScriptArg const & evalGeneric (RenderParams &renderParams) const
 ExpressionNode (ExpressionNode const &)
MCAPI ExpressionNode (::Molang::details::SourceTree root)
MCAPI ExpressionNode (::std::string const &expression, ::MolangVersion molangVersion)
MCAPI ExpressionNode (::Json::Value const &value, ::MolangParseConfig const &config)
MCAPI ExpressionNode (::MolangScriptArg const &value, ::ExpressionOp op)
MCAPI ::std::optional<::MolangScriptArg > _getValueIfConstant () const
MCAPI::std::string getExpressionString () const
MCAPI::MolangCompileResult link ()
MCAPI::ExpressionNode & operator= (::ExpressionNode const &rhs)
MCAPI bool parse (::std::string_view expression, ::MolangParseConfig const &config)
MCAPI void * $ctor (::Molang::details::SourceTree root)
MCAPI void * $ctor (::std::string const &expression, ::MolangVersion molangVersion)
MCAPI void * $ctor (::Json::Value const &value, ::MolangParseConfig const &config)
MCAPI void * $ctor (::MolangScriptArg const &value, ::ExpressionOp op)

Static Public Member Functions

static LLAPI std::function<::MolangScriptArg const &(RenderParams &, std::vector<::ExpressionNode > const &)> const * queryFunctionAccessorFromString (::HashedString const &functionName, ::MolangVersion molangVersion, ::MolangQueryFunctionReturnType &functionReturnType, bool missingIsOkay_returnNullIfSo)
static MCAPI bool _initializeMolangQueries (::ExpressionQueries &&queries)
static MCAPI void bindType (::cereal::ReflectionCtx &ctx)
static MCAPI ::MolangQueryFunction & registerQueryFunction (::std::string_view queryFunctionName, ::std::function<::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> accessor, ::std::string_view documentation, ::MolangQueryFunctionReturnType returnType, ::HashedString querySetIdentifier, uint64 minArgumentCount, uint64 maxArgumentCount, ::std::initializer_list< int > const &experiments)
static MCAPI void setExperiments (::Experiments const &experiments)
static MCAPI void unregisterQueryFunction (::std::string const &queryFunctionName, ::HashedString querySetIdentifier)
static MCAPI ::std::function<::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> & _defaultUnknownQueryFunction ()
static MCAPI ::std::function<::mce::Color(::Block const &, ::BlockSource &, ::BlockPos const &)> & mGetParticleTintFunc ()
static MCAPI ::std::unordered_multimap<::HashedString, ::MolangQueryFunction > & mQueryFunctionAccessors ()
static MCAPI ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString > > & mQuerySets ()

Public Attributes

::ll::TypedStorage< 8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression >, float > > mImpl

Member Typedef Documentation

◆ MissingResourceSet

using ExpressionNode::MissingResourceSet
Initial value:
Definition flat_set.h:10

Constructor & Destructor Documentation

◆ ExpressionNode() [1/3]

MCAPI ExpressionNode::ExpressionNode ( ::Molang::details::SourceTree root)
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.

◆ ExpressionNode() [2/3]

MCAPI ExpressionNode::ExpressionNode ( ::Json::Value const & value,
::MolangParseConfig const & config )
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.

◆ ExpressionNode() [3/3]

MCAPI ExpressionNode::ExpressionNode ( ::MolangScriptArg const & value,
::ExpressionOp op )
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

◆ _getValueIfConstant()

MCAPI ::std::optional<::MolangScriptArg > ExpressionNode::_getValueIfConstant ( ) 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.

◆ link()

MCAPI::MolangCompileResult ExpressionNode::link ( )
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::ExpressionNode & ExpressionNode::operator= ( ::ExpressionNode 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.

◆ _initializeMolangQueries()

MCAPI bool ExpressionNode::_initializeMolangQueries ( ::ExpressionQueries && queries)
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.

◆ bindType()

MCAPI void ExpressionNode::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.

◆ setExperiments()

MCAPI void ExpressionNode::setExperiments ( ::Experiments const & experiments)
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.

◆ mGetParticleTintFunc()

MCAPI ::std::function<::mce::Color(::Block const &, ::BlockSource &, ::BlockPos const &)> & ExpressionNode::mGetParticleTintFunc ( )
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.

◆ mQuerySets()

MCAPI ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString > > & ExpressionNode::mQuerySets ( )
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/3]

MCAPI void * ExpressionNode::$ctor ( ::Molang::details::SourceTree root)
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/3]

MCAPI void * ExpressionNode::$ctor ( ::Json::Value const & value,
::MolangParseConfig const & config )
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() [3/3]

MCAPI void * ExpressionNode::$ctor ( ::MolangScriptArg const & value,
::ExpressionOp op )
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: