Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptBlockComponents Class Reference

Public Member Functions

MCAPI ::std::unordered_map< ::std::string_view, ::std::shared_ptr<::ScriptModuleMinecraft::IScriptBlockComponentFactory > > const & getOrCreateBlockComponentFactories () const
MCAPI ::std::vector<::std::string_view > getSupportedComponentIds (::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation > const &permutation, bool includeCustom) const
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::BaseScriptBlockComponent > > tryCreateComponent (::std::string_view componentName, ::BlockSource &region, ::BlockPos position, ::Scripting::WeakLifetimeScope const &scope, bool allowCustomComponent) const

Static Public Member Functions

static MCAPI void bind (::Scripting::ModuleBindingBuilder &moduleBuilder, ::Scripting::Version const &scriptingVersion, ::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder &componentTypeEnumBuilder, ::std::shared_ptr<::ScriptModuleMinecraft::ScriptBlockComponents > const &blockComponents)

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string_view, ::std::shared_ptr<::ScriptModuleMinecraft::IScriptBlockComponentFactory > > > mNativeFactories
::ll::TypedStorage< 8, 16, ::WeakRef<::ScriptModuleMinecraft::IScriptBlockCustomComponentReader const > > mCustomComponentReader

Member Function Documentation

◆ getOrCreateBlockComponentFactories()

MCAPI ::std::unordered_map< ::std::string_view, ::std::shared_ptr<::ScriptModuleMinecraft::IScriptBlockComponentFactory > > const & ScriptModuleMinecraft::ScriptBlockComponents::getOrCreateBlockComponentFactories ( ) 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.

◆ getSupportedComponentIds()

MCAPI ::std::vector<::std::string_view > ScriptModuleMinecraft::ScriptBlockComponents::getSupportedComponentIds ( ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation > const & permutation,
bool includeCustom ) 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.

◆ tryCreateComponent()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::BaseScriptBlockComponent > > ScriptModuleMinecraft::ScriptBlockComponents::tryCreateComponent ( ::std::string_view componentName,
::BlockSource & region,
::BlockPos position,
::Scripting::WeakLifetimeScope const & scope,
bool allowCustomComponent ) 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.

◆ bind()

MCAPI void ScriptModuleMinecraft::ScriptBlockComponents::bind ( ::Scripting::ModuleBindingBuilder & moduleBuilder,
::Scripting::Version const & scriptingVersion,
::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder & componentTypeEnumBuilder,
::std::shared_ptr<::ScriptModuleMinecraft::ScriptBlockComponents > const & blockComponents )
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: