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

Public Member Functions

MCAPI ActorFactory (::Bedrock::NotNullNonOwnerPtr<::Level > level, ::Experiments const &experiments)
MCAPI void _buildSummonableActorList (::Experiments const &experiments, ::std::function< void(::std::string const &, ::ActorFactoryData const &)> callback) const
MCAPI ::OwnerPtr<::EntityContext > _constructActor (::ActorDefinitionIdentifier const &identifier, ::Vec3 const &position, ::Vec2 const &rotation, ::std::vector<::std::string > const *previousDefinitions) const
MCAPI void _loadDefinitionGroups (::ActorDefinitionGroup *group)
MCAPI void _loadDefinitionsHelper ()
MCAPI void applyEntityInitializer (::std::unique_ptr<::Actor > actor, ::EntityContext &entity) const
MCAPI ::OwnerPtr<::EntityContext > clientCreateDisplayActor (::ActorDefinitionIdentifier const &identifier, ::Actor *spawner, ::Vec3 const &position, ::Vec2 const &rotation)
MCAPI ::OwnerPtr<::EntityContext > createActor (::std::string const &method, ::ActorDefinitionIdentifier const &identifier, ::Actor *spawner, ::Vec3 const &position, ::Vec2 const &rotation)
MCAPI ::OwnerPtr<::EntityContext > createBornActor (::ActorDefinitionIdentifier const &identifier, ::Actor *parent)
MCAPI ::OwnerPtr<::EntityContext > createBornActor (::ActorDefinitionIdentifier const &identifier, ::BlockPos const &pos)
MCAPI ::OwnerPtr<::EntityContext > createSpawnedActor (::ActorDefinitionIdentifier const &identifier, ::Actor *spawner, ::Vec3 const &position, ::Vec2 const &rotation)
MCAPI ::OwnerPtr<::EntityContext > createTransformedActor (::ActorDefinitionIdentifier const &identifier, ::Actor *from)
MCAPI void init (::Experiments const &experiments)
MCAPI ::OwnerPtr<::EntityContext > loadActor (::CompoundTag *tag, ::DataLoadHelper &dataLoadHelper, ::DimensionHeightRange const &heightRange, ::LevelChunk const *levelChunk)
MCAPI void setVanillaActors (::std::vector<::ActorFactoryData > vanillaActors)
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::Level > level, ::Experiments const &experiments)

Static Public Member Functions

static MCAPI ::Actor * fixLegacyEntity (::BlockSource &region, ::CompoundTag const *tag)

Public Attributes

::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::Level > > mLevel
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::IEntityInitializer > > mEntityInitializer
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::ActorDefinitionGroup > > mDefinitions
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::ActorFactoryData > > mFactoryFunctions
::ll::TypedStorage< 8, 16, ::std::set<::std::string > > mExperimentalEntities
::ll::TypedStorage< 8, 24, ::std::vector<::ActorFactoryData > > mVanillaActors
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ActorComponentFactory > > mComponentFactory
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ActorGoalFactory > > mGoalFactory
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ActorMigratedDefinitionFactory > > mActorMigratedFactory

Constructor & Destructor Documentation

◆ ActorFactory()

MCAPI ActorFactory::ActorFactory ( ::Bedrock::NotNullNonOwnerPtr<::Level > level,
::Experiments const & experiments )
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.

Member Function Documentation

◆ _buildSummonableActorList()

MCAPI void ActorFactory::_buildSummonableActorList ( ::Experiments const & experiments,
::std::function< void(::std::string const &, ::ActorFactoryData const &)> callback ) const
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.

◆ _loadDefinitionGroups()

MCAPI void ActorFactory::_loadDefinitionGroups ( ::ActorDefinitionGroup * group)
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.

◆ applyEntityInitializer()

MCAPI void ActorFactory::applyEntityInitializer ( ::std::unique_ptr<::Actor > actor,
::EntityContext & entity ) const
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.

◆ createBornActor() [1/2]

MCAPI ::OwnerPtr<::EntityContext > ActorFactory::createBornActor ( ::ActorDefinitionIdentifier const & identifier,
::Actor * parent )
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.

◆ createBornActor() [2/2]

MCAPI ::OwnerPtr<::EntityContext > ActorFactory::createBornActor ( ::ActorDefinitionIdentifier const & identifier,
::BlockPos const & pos )
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.

◆ init()

MCAPI void ActorFactory::init ( ::Experiments const & experiments)
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.

◆ setVanillaActors()

MCAPI void ActorFactory::setVanillaActors ( ::std::vector<::ActorFactoryData > vanillaActors)
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.

◆ fixLegacyEntity()

MCAPI ::Actor * ActorFactory::fixLegacyEntity ( ::BlockSource & region,
::CompoundTag const * tag )
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.

◆ $ctor()

MCAPI void * ActorFactory::$ctor ( ::Bedrock::NotNullNonOwnerPtr<::Level > level,
::Experiments const & experiments )
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: