3#include "mc/_HeaderOutputPredefine.h"
13namespace Json {
class Value; }
17class ProjectileFactory {
21 ::ll::TypedStorage<8, 8, ::Level&> mLevel;
26 ProjectileFactory& operator=(ProjectileFactory
const&);
27 ProjectileFactory(ProjectileFactory
const&);
39 bool useUnmodifiedDirection,
40 bool overrideSpawnPosition,
52 ::std::string
const& name,
56 MCNAPI static ::std::unique_ptr<::OnHitSubcomponent>
67 MCNAPI static ::std::unordered_map<
72 MCNAPI static ::std::unordered_map<
74 ::std::function<::std::unique_ptr<::OnHitSubcomponent>(::entt::meta_any
const&)>>&
Definition OnHitSubcomponent.h:13
static MCAPI void shutdown()
static MCAPI void _applyEnchantmentsToProjectile(::Mob const &owner, ::Actor &projectile)
static MCAPI ::std::unique_ptr<::OnHitSubcomponent > createSubcomponentFromDefinition(::std::string const &name, ::entt::meta_any const &def)
MCAPI::Actor * shootProjectileFromDefinition(::ActorDefinitionIdentifier const &identifier, ::Mob *owner, ::Vec3 targetDir, int auxValue, float throwPower, bool useUnmodifiedDirection, bool overrideSpawnPosition, ::Vec3 spawnPosition)
static MCAPI void createSubcomponentDefinitionFromLegacy(::Json::Value &trigger, ::std::string const &name, ::SharedTypes::v1_26_50::OnHitCommandsStorage &onHitCommands)
static MCAPI ::std::unordered_map< ::std::string_view, ::std::function< void(::Json::Value &, ::SharedTypes::v1_26_50::OnHitCommandsStorage &)> > & mSubcomponentDefinitionMap()
static MCAPI void initFactory()
static MCAPI ::std::unordered_map< ::std::string_view, ::std::function<::std::unique_ptr<::OnHitSubcomponent >(::entt::meta_any const &)> > & mSubcomponentMap()
Definition ActorDefinitionIdentifier.h:15
Definition OnHitCommandsStorage.h:15