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

Public Member Functions

LLAPI int modifyPlayerScore (ScoreboardOperationResult &result, ScoreboardId const &id, Objective &objective, int scoreValue, PlayerScoreSetFunction action)
LLNDAPI ScoreboardId getId (PlayerScoreboardId const &playerId) const
std::vector<::Objective const * > getObjectives () const
LLAPI bool resetPlayerScore (::ScoreboardId const &id, ::Objective &objective)
virtual::DisplayObjective const * setDisplayObjective (::std::string const &displaySlotName, ::Objective const &objective, ::ObjectiveSortOrder const order)
virtual::Objective * clearDisplayObjective (::std::string const &displaySlotName)
virtual::ScoreboardId const & createScoreboardId (::Player const &player)
virtual::ScoreboardId const & createScoreboardId (::Actor const &entity)
virtual::ScoreboardId const & createScoreboardId (::std::string const &fakePlayer)
virtual void onObjectiveAdded (::Objective const &objective)
virtual void onObjectiveRemoved (::Objective &objective)
virtual void onScoreChanged (::ScoreboardId const &id, ::Objective const &obj)
virtual void onPlayerScoreRemoved (::ScoreboardId const &id, ::Objective const &objective)
virtual void onPlayerJoined (::Player const &player)
virtual void onPlayerIdentityUpdated (::PlayerScoreboardId const &playerId)
virtual void tick ()
virtual void setPacketSender (::PacketSender *sender)
virtual void writeToLevelStorage ()
virtual bool isClientSide () const
MCAPI Scoreboard (::CommandSoftEnumRegistry registry)
MCAPI::Objective * addObjective (::std::string const &name, ::std::string const &displayName, ::ObjectiveCriteria const &criteria)
MCAPI int applyPlayerOperation (::ScoreboardOperationResult &result, ::std::vector<::ScoreboardId > &sourceErrorIds, ::ScoreboardId const &target, ::Objective &targetObjective, ::std::vector<::ScoreboardId > &selector, ::Objective &objective, ::CommandOperator opCode)
MCAPI::ObjectiveCriteria * getCriteria (::std::string const &criteriaName) const
MCAPI ::std::vector<::PlayerScore > getDisplayInfoFiltered (::std::string const &displaySlot) const
MCAPI::DisplayObjective const * getDisplayObjective (::std::string const &displaySlotName) const
MCAPI ::std::vector<::std::string > getDisplayObjectiveSlotNames () const
MCAPI::Objective * getObjective (::std::string const &name) const
MCAPI::ScoreboardId const & getScoreboardId (::Actor const &entity) const
MCAPI::ScoreboardId const & getScoreboardId (::ActorUniqueID const &entityId) const
MCAPI::ScoreboardId const & getScoreboardId (::std::string const &name) const
MCAPI ::std::vector<::ScoreboardId > getTrackedIds () const
MCAPI::ScoreboardIdentityRef const & registerScoreboardIdentity (::ScoreboardId const &scoreboardId, ::PlayerScoreboardId const &playerId)
MCAPI bool removeObjective (::Objective *objective)
MCAPI void removeScoreListener (::Player const &player, ::std::string const &objective)
MCAPI void resetPlayerScore (::ScoreboardId const &id)
MCAPI ::std::optional<::ScoreInfo > tryGetIdScore (::ScoreboardId const &id, uint64 const &objectiveHash) const
MCAPI void * $ctor (::CommandSoftEnumRegistry registry)
MCAPI::DisplayObjective const * $setDisplayObjective (::std::string const &displaySlotName, ::Objective const &objective, ::ObjectiveSortOrder const order)
MCAPI::Objective * $clearDisplayObjective (::std::string const &displaySlotName)
MCAPI::ScoreboardId const & $createScoreboardId (::Player const &player)
MCAPI::ScoreboardId const & $createScoreboardId (::Actor const &entity)
MCAPI::ScoreboardId const & $createScoreboardId (::std::string const &fakePlayer)
MCAPI void $onObjectiveAdded (::Objective const &objective)
MCAPI void $onObjectiveRemoved (::Objective &objective)
MCAPI void $onScoreChanged (::ScoreboardId const &id, ::Objective const &obj)
MCAPI void $onPlayerScoreRemoved (::ScoreboardId const &id, ::Objective const &objective)
MCAPI void $onPlayerJoined (::Player const &player)
MCAPI void $onPlayerIdentityUpdated (::PlayerScoreboardId const &playerId)
MCAPI void $tick ()
MCAPI void $setPacketSender (::PacketSender *sender)
MCAPI void $writeToLevelStorage ()
MCAPI bool $isClientSide () const

Static Public Member Functions

static MCAPI ::std::string const & DEFAULT_CRITERIA ()
static MCAPI ::std::string const & DISPLAY_SLOT_BELOWNAME ()
static MCAPI ::std::string const & DISPLAY_SLOT_LIST ()
static MCAPI ::std::string const & DISPLAY_SLOT_SIDEBAR ()
static MCAPI char const *& OBJECTIVES_ENUM ()

Public Attributes

::ll::TypedStorage< 8, 8, ::CommandSoftEnumRegistry > mRegistry
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::DisplayObjective > > mDisplayObjectives
::ll::TypedStorage< 8, 256, ::IdentityDictionary > mIdentityDict
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ScoreboardId, ::ScoreboardIdentityRef > > mIdentityRefs
::ll::TypedStorage< 1, 1, bool > mShouldUpdateUI
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::Objective > > > mObjectives
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::Bedrock::NonOwnerPointer<::Objective > > > mObjectivesHashLookup
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::ObjectiveCriteria > > > mCriteria
::ll::TypedStorage< 8, 96, ::ScoreboardEventCoordinator > mScoreboardEventCoordinator
::ll::TypedStorage< 8, 72, ::PlayerScoreboardEventListener > mPlayerListener

Constructor & Destructor Documentation

◆ Scoreboard()

MCAPI Scoreboard::Scoreboard ( ::CommandSoftEnumRegistry registry)
explicit
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

◆ applyPlayerOperation()

MCAPI int Scoreboard::applyPlayerOperation ( ::ScoreboardOperationResult & result,
::std::vector<::ScoreboardId > & sourceErrorIds,
::ScoreboardId const & target,
::Objective & targetObjective,
::std::vector<::ScoreboardId > & selector,
::Objective & objective,
::CommandOperator opCode )
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.

◆ getDisplayInfoFiltered()

MCAPI ::std::vector<::PlayerScore > Scoreboard::getDisplayInfoFiltered ( ::std::string const & displaySlot) 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.

◆ getScoreboardId()

MCAPI::ScoreboardId const & Scoreboard::getScoreboardId ( ::ActorUniqueID const & entityId) 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.

◆ registerScoreboardIdentity()

MCAPI::ScoreboardIdentityRef const & Scoreboard::registerScoreboardIdentity ( ::ScoreboardId const & scoreboardId,
::PlayerScoreboardId const & playerId )
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.

◆ removeScoreListener()

MCAPI void Scoreboard::removeScoreListener ( ::Player const & player,
::std::string const & objective )
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.

◆ DISPLAY_SLOT_BELOWNAME()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_BELOWNAME ( )
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.

◆ DISPLAY_SLOT_LIST()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_LIST ( )
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.

◆ DISPLAY_SLOT_SIDEBAR()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_SIDEBAR ( )
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.

◆ OBJECTIVES_ENUM()

MCAPI char const *& Scoreboard::OBJECTIVES_ENUM ( )
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 * Scoreboard::$ctor ( ::CommandSoftEnumRegistry registry)
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.

◆ $setDisplayObjective()

MCAPI::DisplayObjective const * Scoreboard::$setDisplayObjective ( ::std::string const & displaySlotName,
::Objective const & objective,
::ObjectiveSortOrder const order )
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.

◆ $clearDisplayObjective()

MCAPI::Objective * Scoreboard::$clearDisplayObjective ( ::std::string const & displaySlotName)
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.

◆ $createScoreboardId() [1/3]

MCAPI::ScoreboardId const & Scoreboard::$createScoreboardId ( ::Player const & player)
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.

◆ $createScoreboardId() [2/3]

MCAPI::ScoreboardId const & Scoreboard::$createScoreboardId ( ::Actor const & entity)
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.

◆ $createScoreboardId() [3/3]

MCAPI::ScoreboardId const & Scoreboard::$createScoreboardId ( ::std::string const & fakePlayer)
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.

◆ $onObjectiveAdded()

MCAPI void Scoreboard::$onObjectiveAdded ( ::Objective const & objective)
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.

◆ $onObjectiveRemoved()

MCAPI void Scoreboard::$onObjectiveRemoved ( ::Objective & objective)
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.

◆ $onScoreChanged()

MCAPI void Scoreboard::$onScoreChanged ( ::ScoreboardId const & id,
::Objective const & obj )
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.

◆ $onPlayerScoreRemoved()

MCAPI void Scoreboard::$onPlayerScoreRemoved ( ::ScoreboardId const & id,
::Objective const & objective )
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.

◆ $onPlayerJoined()

MCAPI void Scoreboard::$onPlayerJoined ( ::Player const & player)
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.

◆ $onPlayerIdentityUpdated()

MCAPI void Scoreboard::$onPlayerIdentityUpdated ( ::PlayerScoreboardId const & playerId)
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.

◆ $tick()

MCAPI void Scoreboard::$tick ( )
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.

◆ $setPacketSender()

MCAPI void Scoreboard::$setPacketSender ( ::PacketSender * sender)
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.

◆ $writeToLevelStorage()

MCAPI void Scoreboard::$writeToLevelStorage ( )
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.

◆ $isClientSide()

MCAPI bool Scoreboard::$isClientSide ( ) 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: