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

Public Types

using ItemTypesMap

Public Member Functions

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > _registerItemType (::std::unordered_map< ::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > &registry, ::Scripting::WeakLifetimeScope scope, ::std::string itemName, bool allowAirBlockItem)
MCAPI void _registerItems (::Scripting::WeakLifetimeScope &scope, bool allowAirBlockItem)
MCAPI void _tryRegisterItemTypeAlias (::HashedString const &aliasName)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > get (::Scripting::WeakLifetimeScope &scope, ::std::string const &itemName, bool allowAirBlockItem)
MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > getAll (::Scripting::WeakLifetimeScope &scope, bool allowAirBlockItem)

Static Public Member Functions

static MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > _getOrCreateItemTypeHandle (::Scripting::WeakLifetimeScope scope, ::std::string const &lookupName)
static MCAPI void bind (::Scripting::ModuleBindingBuilder &moduleBuilder, ::ItemRegistryRef itemRegistry)
static MCAPI ::std::unordered_map<::std::string, ::std::string > generateItemPropertyNameToRawNameMap (::ItemRegistryRef itemRegistry, bool allowAirBlockItem)
static MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > getOrCreateItemTypeHandle (::Scripting::WeakLifetimeScope scope, ::std::string const &identifier)

Public Attributes

::ll::TypedStorage< 8, 16, ::ItemRegistryRef const > mItemRegistry
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > > mItems
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > > mItemAliases
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > > mThirdPartyItems
::ll::TypedStorage< 1, 1, bool > mRegisteredItems

Member Typedef Documentation

◆ ItemTypesMap

using ScriptModuleMinecraft::ScriptItems::ItemTypesMap
Initial value:
::std::
unordered_map<::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType>>

Member Function Documentation

◆ _registerItemType()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > ScriptModuleMinecraft::ScriptItems::_registerItemType ( ::std::unordered_map< ::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > & registry,
::Scripting::WeakLifetimeScope scope,
::std::string itemName,
bool allowAirBlockItem )
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.

◆ _registerItems()

MCAPI void ScriptModuleMinecraft::ScriptItems::_registerItems ( ::Scripting::WeakLifetimeScope & scope,
bool allowAirBlockItem )
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.

◆ _tryRegisterItemTypeAlias()

MCAPI void ScriptModuleMinecraft::ScriptItems::_tryRegisterItemTypeAlias ( ::HashedString const & aliasName)
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.

◆ get()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > ScriptModuleMinecraft::ScriptItems::get ( ::Scripting::WeakLifetimeScope & scope,
::std::string const & itemName,
bool allowAirBlockItem )
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.

◆ getAll()

MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > ScriptModuleMinecraft::ScriptItems::getAll ( ::Scripting::WeakLifetimeScope & scope,
bool allowAirBlockItem )
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.

◆ _getOrCreateItemTypeHandle()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > ScriptModuleMinecraft::ScriptItems::_getOrCreateItemTypeHandle ( ::Scripting::WeakLifetimeScope scope,
::std::string const & lookupName )
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.

◆ bind()

MCAPI void ScriptModuleMinecraft::ScriptItems::bind ( ::Scripting::ModuleBindingBuilder & moduleBuilder,
::ItemRegistryRef itemRegistry )
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.

◆ generateItemPropertyNameToRawNameMap()

MCAPI ::std::unordered_map<::std::string, ::std::string > ScriptModuleMinecraft::ScriptItems::generateItemPropertyNameToRawNameMap ( ::ItemRegistryRef itemRegistry,
bool allowAirBlockItem )
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.

◆ getOrCreateItemTypeHandle()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > ScriptModuleMinecraft::ScriptItems::getOrCreateItemTypeHandle ( ::Scripting::WeakLifetimeScope scope,
::std::string const & identifier )
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: