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

Public Types

enum class  Source : int { Loot = 0 , Kill = 1 , Mine = 2 , Error = 3 }
enum class  Target : int {
  Spawn = 0 , Give = 1 , Insert = 2 , Replace = 3 ,
  Error = 4
}
enum class  TargetIdentifier : int { Entity = 0 , Block = 1 , Error = 2 }

Public Member Functions

virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI void _outputError (::CommandOutput &output, ::Util::ReplacementResults const errorDetails, ::Actor const *entity) 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 _outputSuccess (::CommandOutput &output, int numItemsDropped)
static MCAPI void setup (::CommandRegistry &registry, ::ItemRegistryRef itemRegistry)
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< 4, 16, ::CommandPositionFloatmPosition
::ll::TypedStorage< 4, 16, ::CommandPositionFloatmMinePosition
::ll::TypedStorage< 4, 4, ::LootCommand::Target > mTarget
::ll::TypedStorage< 4, 4, ::LootCommand::Source > mSource
::ll::TypedStorage< 4, 4, ::LootCommand::TargetIdentifier > mReplacementIdentifier
::ll::TypedStorage< 8, 32, ::std::string > mLootTable
::ll::TypedStorage< 8, 32, ::std::string > mTool
::ll::TypedStorage< 8, 200, ::CommandSelector<::Actor > > mEntitySource
::ll::TypedStorage< 8, 200, ::CommandSelector<::Actor > > mEntityTarget
::ll::TypedStorage< 8, 200, ::CommandSelector<::Player > > mPlayerTarget
::ll::TypedStorage< 4, 4, ::BlockSlot > mBlockSlot
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::EquipmentSlot > mEquipmentSlot
::ll::TypedStorage< 4, 4, int > mSlotId
::ll::TypedStorage< 4, 4, int > mConsecutiveSlotFillCount
::ll::TypedStorage< 1, 1, bool > mSlotFillCountIsSet
::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 LootCommand::execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) const
virtual

Implements Command.


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