LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptItems Class Reference

Public Types

using ItemTypesMap

Public Member Functions

ScriptItems & operator= (ScriptItems const &)
MCAPI ScriptItems (::ScriptModuleMinecraft::ScriptItems const &)
MCAPI ScriptItems (::ItemRegistryRef itemRegistry)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > _getItemHandleForAlias (::HashedString const &aliasName) const
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 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > _registerItemTypeAlias (::std::string itemName, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > itemHandle)
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)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > getOrAdd (::Scripting::WeakLifetimeScope &scope, ::std::string const &itemName, bool allowAirBlockItem)
MCAPI void * $ctor (::ScriptModuleMinecraft::ScriptItems const &)
MCAPI void * $ctor (::ItemRegistryRef itemRegistry)

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_S ::std::vector<::std::string > generatetItemCooldownCategories (::ItemRegistryRef itemRegistry)
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>>

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