17class ProjectileFactory {
21 ::ll::TypedStorage<8, 8, ::Level&> mLevel;
26 ProjectileFactory& operator=(ProjectileFactory
const&);
27 ProjectileFactory(ProjectileFactory
const&);
33 MCAPI ::Actor* shootProjectileFromDefinition(
39 bool useUnmodifiedDirection,
40 bool overrideSpawnPosition,
48 MCAPI
static void _applyEnchantmentsToProjectile(
::Mob const& owner,
::Actor& projectile);
50 MCAPI
static void createSubcomponentDefinitionFromLegacy(
52 ::std::string
const& name,
56 MCAPI static ::std::unique_ptr<::OnHitSubcomponent>
57 createSubcomponentFromDefinition(::std::string
const& name, ::entt::meta_any
const& def);
59 MCAPI
static void initFactory();
61 MCAPI
static void shutdown();
67 MCAPI static ::std::unordered_map<
70 mSubcomponentDefinitionMap();
72 MCAPI static ::std::unordered_map<
74 ::std::function<::std::unique_ptr<::OnHitSubcomponent>(::entt::meta_any
const&)>>&