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

Classes

struct  InitProxy

Public Member Functions

virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
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
MCFOLD bool $collectOptionalArguments ()

Static Public Member Functions

static MCAPI void createJsonIndex (::std::string const &ruleName, ::GameRule const &rule, ::Json::Value &json, ::std::string *value)
static MCAPI void setup (::CommandRegistry &registry, ::GameRuleCommand::InitProxy &&dependencies)
static MCAPI bool isWildcard (::CommandSelectorBase const &selector)
static MCAPI bool shouldUseCommandOriginRotation (::CommandOrigin const &origin, int version)
static MCAPI bool validRange (int input, int low, int high, ::CommandOutput &output)
static MCAPI bool validRange (float input, float low, float high, ::CommandOutput &output)

Public Attributes

::ll::TypedStorage< 8, 32, ::std::string > mGameRule
::ll::TypedStorage< 8, 32, ::std::string > mEnumStringValue
::ll::TypedStorage< 4, 4, float > mFloatValue
::ll::TypedStorage< 4, 4, int > mIntValue
::ll::TypedStorage< 1, 1, bool > mBoolValue
::ll::TypedStorage< 1, 1, bool > mBoolValueSet
::ll::TypedStorage< 1, 1, bool > mIntValueSet
::ll::TypedStorage< 1, 1, bool > mFloatValueSet
::ll::TypedStorage< 1, 1, bool > mEnumStringValueSet
::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, ::CommandFlag > mFlags

Member Function Documentation

◆ execute()

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

Implements Command.


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