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

Public Member Functions

ProjectileFactory & operator= (ProjectileFactory const &)
 ProjectileFactory (ProjectileFactory const &)
MCAPI::Actor * shootProjectileFromDefinition (::ActorDefinitionIdentifier const &identifier, ::Mob *owner, ::Vec3 targetDir, int auxValue, float throwPower, bool useUnmodifiedDirection, bool overrideSpawnPosition, ::Vec3 spawnPosition)

Static Public Member Functions

static MCAPI void _applyEnchantmentsToProjectile (::Mob const &owner, ::Actor &projectile)
static MCAPI void createSubcomponentDefinitionFromLegacy (::Json::Value &trigger, ::std::string const &name, ::SharedTypes::v1_26_50::OnHitCommandsStorage &onHitCommands)
static MCAPI ::std::unique_ptr<::OnHitSubcomponent > createSubcomponentFromDefinition (::std::string const &name, ::entt::meta_any const &def)
static MCAPI void initFactory ()
static MCAPI void shutdown ()
static MCAPI ::std::unordered_map< ::std::string_view, ::std::function< void(::Json::Value &, ::SharedTypes::v1_26_50::OnHitCommandsStorage &)> > & mSubcomponentDefinitionMap ()
static MCAPI ::std::unordered_map< ::std::string_view, ::std::function<::std::unique_ptr<::OnHitSubcomponent >(::entt::meta_any const &)> > & mSubcomponentMap ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Level & > mLevel

Member Function Documentation

◆ shootProjectileFromDefinition()

MCAPI::Actor * ProjectileFactory::shootProjectileFromDefinition ( ::ActorDefinitionIdentifier const & identifier,
::Mob * owner,
::Vec3 targetDir,
int auxValue,
float throwPower,
bool useUnmodifiedDirection,
bool overrideSpawnPosition,
::Vec3 spawnPosition )
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.

◆ _applyEnchantmentsToProjectile()

MCAPI void ProjectileFactory::_applyEnchantmentsToProjectile ( ::Mob const & owner,
::Actor & projectile )
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.

◆ createSubcomponentDefinitionFromLegacy()

MCAPI void ProjectileFactory::createSubcomponentDefinitionFromLegacy ( ::Json::Value & trigger,
::std::string const & name,
::SharedTypes::v1_26_50::OnHitCommandsStorage & onHitCommands )
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.

◆ createSubcomponentFromDefinition()

MCAPI ::std::unique_ptr<::OnHitSubcomponent > ProjectileFactory::createSubcomponentFromDefinition ( ::std::string const & name,
::entt::meta_any const & def )
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.

◆ initFactory()

MCAPI void ProjectileFactory::initFactory ( )
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.

◆ shutdown()

MCAPI void ProjectileFactory::shutdown ( )
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.

◆ mSubcomponentDefinitionMap()

MCAPI ::std::unordered_map< ::std::string_view, ::std::function< void(::Json::Value &, ::SharedTypes::v1_26_50::OnHitCommandsStorage &)> > & ProjectileFactory::mSubcomponentDefinitionMap ( )
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.

◆ mSubcomponentMap()

MCAPI ::std::unordered_map< ::std::string_view, ::std::function<::std::unique_ptr<::OnHitSubcomponent >(::entt::meta_any const &)> > & ProjectileFactory::mSubcomponentMap ( )
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: