LeviLamina
Loading...
Searching...
No Matches
ScoreboardCommand Class Reference
+ Inheritance diagram for ScoreboardCommand:

Classes

struct  InitProxy
 
struct  SetScoreOutput
 

Public Types

enum class  Category : int { Objectives = 0 , Players = 1 }
 
enum class  Action : int {
  Invalid = 0 , Add = 1 , List = 2 , Operation = 3 ,
  Random = 4 , Remove = 5 , Reset = 6 , Set = 7 ,
  SetDisplay = 8 , Test = 9
}
 

Public Member Functions

ScoreboardCommandoperator= (ScoreboardCommand const &)
 
 ScoreboardCommand (ScoreboardCommand const &)
 
virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI void _generateCumulativeOutput (::ScoreboardCommand::SetScoreOutput const &cumulativeOutput, ::Objective const &objective, ::CommandOutput &output) const
 
MCAPI::Objective * _getObjective (::Scoreboard const &scoreboard, ::std::string const &name, bool forWrite, ::CommandOutput &output) const
 
MCAPI ::std::vector<::ScoreboardId_getScoreboardIdsForSelector (::Scoreboard &scoreboard, ::WildcardCommandSelector<::Actor > const &selector, ::CommandOrigin const &origin, ::CommandOutput &output, bool shouldCreateMissingId) const
 
MCAPI bool _getSelectorResultsForObjective (::std::vector<::ScoreboardId > &results, ::Scoreboard &scoreboard, ::WildcardCommandSelector<::Actor > const &selector, ::Objective &objective, ::CommandOrigin const &origin, ::CommandOutput &output, bool shouldCreateMissingId) const
 
MCAPI void addObjective (::Scoreboard &scoreboard, ::std::string const &name, ::std::string const &criteriaName, ::std::string const &displayName, ::CommandOutput &output) const
 
MCAPI void addPlayerScore (::Scoreboard &scoreboard, ::PlayerScoreSetFunction fn, ::ScoreboardId const &targetId, ::Objective &objective, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::CommandOutput &output, ::ScoreboardCommand::SetScoreOutput &cumulativeOutput) const
 
MCAPI bool applyPlayerOperation (::Scoreboard &scoreboard, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::ScoreboardId const &targetId, ::Objective &targetObjective, ::Objective &objective, ::CommandOrigin const &origin, ::CommandOutput &output, ::ScoreboardCommand::SetScoreOutput &cumulativeOutput) const
 
MCAPI void listObjectives (::Scoreboard const &scoreboard, ::CommandOutput &output) const
 
MCAPI void listPlayers (::Scoreboard &scoreboard, ::ScoreboardId const &targetId, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::CommandOutput &output) const
 
MCAPI void objectives (::Scoreboard &scoreboard, ::CommandOrigin const &output, ::CommandOutput &origin) const
 
MCAPI void players (::Scoreboard &scoreboard, ::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI void removeObjective (::Scoreboard &scoreboard, ::std::string const &name, ::CommandOutput &output) const
 
MCAPI void resetPlayer (::Scoreboard &scoreboard, ::ScoreboardId const &targetId, ::Objective *objective, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::CommandOutput &output) const
 
MCAPI void setDisplayObjective (::Scoreboard &scoreboard, ::std::string const &displaySlotName, ::std::string const &objectiveName, ::ObjectiveSortOrder order, ::CommandOutput &output) const
 
MCAPI bool setPlayerRandomScore (::Scoreboard &scoreboard, ::ScoreboardId const &targetId, ::Objective &targetObjective, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::CommandOutput &output, ::ScoreboardCommand::SetScoreOutput &cumulativeOutput) const
 
MCAPI void testPlayerScore (::ScoreboardId const &targetId, ::Objective &objective, ::std::function<::std::string const &(::ActorUniqueID)> const &playerNameResolver, ::CommandOutput &output) const
 
MCAPI void * $ctor ()
 
MCAPI void $dtor ()
 
MCAPI void $execute (::CommandOrigin const &origin, ::CommandOutput &output) const
 
LLNDAPI std::string getCommandName () const
 
virtual bool collectOptionalArguments ()
 
MCAPI void run (::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI void sendTelemetry (::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI bool shouldSendTelemetry (::CommandOrigin const &origin) const
 
MCFOLD bool $collectOptionalArguments ()
 

Static Public Member Functions

static MCAPI ::std::vector<::std::string > _getNonSortableDisplaySlots (::Scoreboard &scoreboard)
 
static MCAPI ::std::vector<::std::string > _getSortableDisplaySlots (::Scoreboard &scoreboard)
 
static MCAPI void setup (::CommandRegistry &registry, ::ScoreboardCommand::InitProxy &&dependencies)
 
static MCAPI void ** $vftable ()
 
static MCAPI bool isTemplateLockedAction (::CommandOrigin const &origin)
 
static MCAPI bool isWildcard (::CommandSelectorBase const &selector)
 
static MCAPI bool shouldUseCommandOriginRotation (::CommandOrigin const &origin, int version)
 
static MCAPI bool validRange (float input, float low, float high, ::CommandOutput &output)
 
static MCAPI bool validRange (int input, int low, int high, ::CommandOutput &output)
 
static MCAPI ::std::string const & WILDCARD_TOKEN ()
 

Public Attributes

::ll::UntypedStorage< 4, 4 > mUnkf9fb5c
 
::ll::UntypedStorage< 4, 4 > mUnk1dde80
 
::ll::UntypedStorage< 8, 32 > mUnkea14e0
 
::ll::UntypedStorage< 8, 32 > mUnk7cb10b
 
::ll::UntypedStorage< 1, 1 > mUnke13bce
 
::ll::UntypedStorage< 8, 32 > mUnkdd65c4
 
::ll::UntypedStorage< 8, 32 > mUnk3e0250
 
::ll::UntypedStorage< 8, 32 > mUnkb1c093
 
::ll::UntypedStorage< 8, 200 > mUnka68af1
 
::ll::UntypedStorage< 8, 200 > mUnkc12ce9
 
::ll::UntypedStorage< 1, 1 > mUnk3d3370
 
::ll::UntypedStorage< 4, 8 > mUnk7d2df4
 
::ll::UntypedStorage< 4, 8 > mUnkbec487
 
::ll::UntypedStorage< 4, 4 > mUnk67a061
 
::ll::UntypedStorage< 4, 4 > mUnkbf069a
 
::ll::UntypedStorage< 4, 4 > mUnk48fdfd
 
::ll::UntypedStorage< 1, 1 > mUnk5354ab
 
::ll::TypedStorage< 4, 4, int > mVersion
 
::ll::TypedStorage< 8, 8, ::CommandRegistry const * > mRegistry
 
::ll::TypedStorage< 4, 4, int > mCommandSymbol
 
::ll::TypedStorage< 1, 1, ::CommandPermissionLevel > mPermissionLevel
 
::ll::TypedStorage< 2, 2, ::CommandFlagmFlags
 

Member Function Documentation

◆ execute()

virtual void ScoreboardCommand::execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) const
virtual

Implements Command.


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