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

Public Types

using TextFilter = ::std::function<::std::string(::std::string const&)>

Public Member Functions

NpcComponent & operator= (NpcComponent const &)
 NpcComponent (NpcComponent const &)
MCAPI NpcComponent (::NpcComponent &&rhs)
MCAPI void _deserializeData (::Json::Value const &npcData)
MCAPI void _loadData (::Actor &owner)
MCAPI void addAdditionalSaveData (::CompoundTag &tag, ::Actor const &owner) const
MCAPI ::std::vector< int > getCommandCounts () const
MCAPI::Interaction getInteraction (::Actor &owner, ::Player &player, ::HandSlot)
MCAPI::std::string const & getInteractiveText (::Actor &owner) const
MCAPI::std::string const & getSceneStateForPlayer (::ActorUniqueID const &playerID) const
MCAPI void initClientOnlyData (::Actor &owner)
MCAPI void initFromDefinition (::Actor &owner)
MCAPI void loadActions (::Actor &owner)
MCAPI void loadInteractiveRawText (::Actor &owner)
MCAPI void loadNameRawText (::Actor &owner)
MCAPI::NpcComponent & operator= (::NpcComponent &&rhs)
MCAPI void readAdditionalSaveData (::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI::std::string sanitizeRawText (::std::string const &rawText) const
MCAPI void setDefaultSceneId (::std::string sceneId)
MCAPI bool setDialogueScene (::Actor &owner, ::std::string const &sceneName)
MCAPI void setInteractiveText (::Actor &owner, ::std::string const &text, bool setLocal)
MCAPI void setName (::Actor &owner, ::std::string const &name, bool setLocal)
MCAPI void setSceneStateForPlayer (::Actor &owner, ::ActorUniqueID const &playerID, ::std::string const &sceneName)
MCAPI bool setSkinIndex (::Actor &owner, int skinIndex, bool setLocal)
MCAPI void syncActionsWithClient (::Actor &owner)
MCAPI void * $ctor (::NpcComponent &&rhs)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI void _defineEntityDataString (::Actor &owner, ::ActorDataIDs id)
static MCAPI void executeCommandAction (::Actor &owner, ::Player &sourcePlayer, int actionIndex, ::std::string const &sceneName)
static MCAPI ::std::string const & ACTIONS_TAG ()
static MCAPI ::std::string const & INTERACTIVE_TAG ()
static MCAPI ::std::string const & NAME_RAW_TEXT_TAG ()
static MCAPI ::std::string const & PLAYER_ID_TAG ()
static MCAPI ::std::string const & PLAYER_SCENE_MAPPING_TAG ()
static MCAPI ::std::string const & SCENE_NAME_TAG ()
static MCAPI ::std::string const & URL_TAG ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, int > mCurrentSkin
::ll::TypedStorage< 4, 36, ::NpcGUIOffset > mPortraitOffsets
::ll::TypedStorage< 4, 36, ::NpcGUIOffset > mPickerOffsets
::ll::TypedStorage< 8, 24, ::std::vector<::SkinData > > mNPCSkins
::ll::TypedStorage< 8, 48, ::npc::ActionContainer > mActionsContainer
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ActorUniqueID, ::std::string > > mPlayerSceneState
::ll::TypedStorage< 8, 32, ::std::string > mDefaultSceneId
::ll::TypedStorage< 8, 40, ::std::optional<::std::string > > mInteractText
::ll::TypedStorage< 8, 64, ::std::function<::std::string(::std::string const &)> > mInteractTextFilter
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::NpcI18nObserver > > mNpcI18nObserver
::ll::TypedStorage< 1, 1, bool > mIsGloballyAccessed

Constructor & Destructor Documentation

◆ NpcComponent()

MCAPI NpcComponent::NpcComponent ( ::NpcComponent && rhs)
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

◆ _deserializeData()

MCAPI void NpcComponent::_deserializeData ( ::Json::Value const & npcData)
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.

◆ _loadData()

MCAPI void NpcComponent::_loadData ( ::Actor & owner)
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.

◆ addAdditionalSaveData()

MCAPI void NpcComponent::addAdditionalSaveData ( ::CompoundTag & tag,
::Actor const & owner ) 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.

◆ getCommandCounts()

MCAPI ::std::vector< int > NpcComponent::getCommandCounts ( ) 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.

◆ getInteraction()

MCAPI::Interaction NpcComponent::getInteraction ( ::Actor & owner,
::Player & player,
::HandSlot  )
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.

◆ getInteractiveText()

MCAPI::std::string const & NpcComponent::getInteractiveText ( ::Actor & owner) 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.

◆ getSceneStateForPlayer()

MCAPI::std::string const & NpcComponent::getSceneStateForPlayer ( ::ActorUniqueID const & playerID) 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.

◆ initClientOnlyData()

MCAPI void NpcComponent::initClientOnlyData ( ::Actor & owner)
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.

◆ initFromDefinition()

MCAPI void NpcComponent::initFromDefinition ( ::Actor & owner)
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.

◆ loadActions()

MCAPI void NpcComponent::loadActions ( ::Actor & owner)
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.

◆ loadInteractiveRawText()

MCAPI void NpcComponent::loadInteractiveRawText ( ::Actor & owner)
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.

◆ loadNameRawText()

MCAPI void NpcComponent::loadNameRawText ( ::Actor & owner)
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.

◆ operator=()

MCAPI::NpcComponent & NpcComponent::operator= ( ::NpcComponent && rhs)
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.

◆ readAdditionalSaveData()

MCAPI void NpcComponent::readAdditionalSaveData ( ::Actor & owner,
::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
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.

◆ sanitizeRawText()

MCAPI::std::string NpcComponent::sanitizeRawText ( ::std::string const & rawText) 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.

◆ setDefaultSceneId()

MCAPI void NpcComponent::setDefaultSceneId ( ::std::string sceneId)
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.

◆ setDialogueScene()

MCAPI bool NpcComponent::setDialogueScene ( ::Actor & owner,
::std::string const & sceneName )
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.

◆ setInteractiveText()

MCAPI void NpcComponent::setInteractiveText ( ::Actor & owner,
::std::string const & text,
bool setLocal )
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.

◆ setName()

MCAPI void NpcComponent::setName ( ::Actor & owner,
::std::string const & name,
bool setLocal )
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.

◆ setSceneStateForPlayer()

MCAPI void NpcComponent::setSceneStateForPlayer ( ::Actor & owner,
::ActorUniqueID const & playerID,
::std::string const & sceneName )
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.

◆ setSkinIndex()

MCAPI bool NpcComponent::setSkinIndex ( ::Actor & owner,
int skinIndex,
bool setLocal )
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.

◆ syncActionsWithClient()

MCAPI void NpcComponent::syncActionsWithClient ( ::Actor & owner)
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.

◆ _defineEntityDataString()

MCAPI void NpcComponent::_defineEntityDataString ( ::Actor & owner,
::ActorDataIDs id )
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.

◆ ACTIONS_TAG()

MCAPI ::std::string const & NpcComponent::ACTIONS_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.

◆ INTERACTIVE_TAG()

MCAPI ::std::string const & NpcComponent::INTERACTIVE_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.

◆ NAME_RAW_TEXT_TAG()

MCAPI ::std::string const & NpcComponent::NAME_RAW_TEXT_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.

◆ PLAYER_ID_TAG()

MCAPI ::std::string const & NpcComponent::PLAYER_ID_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.

◆ PLAYER_SCENE_MAPPING_TAG()

MCAPI ::std::string const & NpcComponent::PLAYER_SCENE_MAPPING_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.

◆ SCENE_NAME_TAG()

MCAPI ::std::string const & NpcComponent::SCENE_NAME_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.

◆ URL_TAG()

MCAPI ::std::string const & NpcComponent::URL_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 * NpcComponent::$ctor ( ::NpcComponent && rhs)
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.

◆ $dtor()

MCAPI void NpcComponent::$dtor ( )
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.

◆ $vftable()

MCAPI void ** NpcComponent::$vftable ( )
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: