Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CommandSelectorBase Class Reference
Inheritance diagram for CommandSelectorBase:

Public Types

using FilterFunc = ::std::function<bool(::CommandOrigin const&, ::Actor const&)>

Public Member Functions

 CommandSelectorBase (bool forcePlayer)
MCAPI void addFilter (::std::function< bool(::CommandOrigin const &, ::Actor const &)> filter)
MCAPI bool compile (::CommandOrigin const &origin, ::std::string &error)
MCAPI bool filter (::CommandOrigin const &origin, ::Actor &actor) const
MCAPI::std::string getName () const
MCAPI bool isExpansionAllowed (::CommandOrigin const &origin) const
MCAPI bool matchFamily (::Actor const &entity) const
MCAPI bool matchName (::Actor const &entity) const
MCAPI bool matchTag (::Actor const &entity) const
MCAPI bool matchType (::Actor const &entity) const
MCAPI ::std::shared_ptr<::std::vector<::Actor * > > newResults (::CommandOrigin const &origin) const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::Vec3 const getFeetPos (int const version, ::Actor const &entity)

Public Attributes

int mVersion {}
::CommandSelectionType mType {}
::CommandSelectionOrder mOrder {}
::std::vector<::InvertableFilter<::std::string > > mNameFilters {}
::std::vector<::InvertableFilter<::ActorDefinitionIdentifier > > mTypeFilters {}
::std::vector<::InvertableFilter<::HashedString > > mFamilyFilters {}
::std::vector<::InvertableFilter<::std::string > > mTagFilters {}
::std::vector<::std::function< bool(::CommandOrigin const &, ::Actor const &)> > mFilterChain {}
::CommandPosition mPosition {}
::Vec3 mBoxDeltas {}
float mRadiusMinSqr {0.0f}
float mRadiusMaxSqr {std::numeric_limits<float>::max()}
uint64 mCount {std::numeric_limits<uint>::max()}
bool mIncludeDeadPlayers {}
bool mIsPositionBound {}
bool mDistanceFiltered {}
bool mPositionFiltered {}
bool mCountFiltered {}
bool mHaveDeltas {}
bool mForcePlayer {}
bool mExcludeAgents {}
bool mIsExplicitIdSelector {}
bool mForceDimensionFiltering {}
bool mIsCodeBuilderEnabled {}

Member Function Documentation

◆ addFilter()

MCAPI void CommandSelectorBase::addFilter ( ::std::function< bool(::CommandOrigin const &, ::Actor const &)> filter)
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.

◆ compile()

MCAPI bool CommandSelectorBase::compile ( ::CommandOrigin const & origin,
::std::string & error )
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.

◆ filter()

MCAPI bool CommandSelectorBase::filter ( ::CommandOrigin const & origin,
::Actor & actor ) 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.

◆ getName()

MCAPI::std::string CommandSelectorBase::getName ( ) 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.

◆ matchFamily()

MCAPI bool CommandSelectorBase::matchFamily ( ::Actor const & 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.

◆ matchName()

MCAPI bool CommandSelectorBase::matchName ( ::Actor const & 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.

◆ matchTag()

MCAPI bool CommandSelectorBase::matchTag ( ::Actor const & 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.

◆ matchType()

MCAPI bool CommandSelectorBase::matchType ( ::Actor const & 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.

◆ newResults()

MCAPI ::std::shared_ptr<::std::vector<::Actor * > > CommandSelectorBase::newResults ( ::CommandOrigin const & origin) 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.

The documentation for this class was generated from the following file: