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

Public Types

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

Public Member Functions

LootCommandoperator= (LootCommand const &)
 
 LootCommand (LootCommand const &)
 
virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI ::std::optional<::std::vector<::ItemStack > > _getItemsFromSource (::CommandOrigin const &origin, ::CommandOutput &output, ::ItemStack const &tool, ::Level &level, ::DimensionType dimensionId) const
 
MCAPI void _outputError (::CommandOutput &output, ::Util::ReplacementResults errorDetails, ::Actor const *entity) const
 
MCAPI void _outputSuccess (::CommandOutput &output, int numItemsDropped) const
 
MCAPI void _placeItemsInTarget (::CommandOrigin const &origin, ::CommandOutput &output, ::std::vector<::ItemStack > &items) const
 
MCAPI::ItemStack getToolItemStack (::CommandOrigin const &origin, ::CommandOutput &output) const
 
MCAPI void * $ctor ()
 
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 void $dtor ()
 
MCFOLD bool $collectOptionalArguments ()
 

Static Public Member Functions

static MCAPI void setup (::CommandRegistry &registry, ::ItemRegistryRef itemRegistry)
 
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, 16 > mUnk61ee00
 
::ll::UntypedStorage< 4, 16 > mUnkc2d44e
 
::ll::UntypedStorage< 4, 4 > mUnkd99ddd
 
::ll::UntypedStorage< 4, 4 > mUnk143aa3
 
::ll::UntypedStorage< 4, 4 > mUnkc6ab40
 
::ll::UntypedStorage< 8, 32 > mUnk37e4b5
 
::ll::UntypedStorage< 8, 32 > mUnk1f092c
 
::ll::UntypedStorage< 8, 200 > mUnkab3570
 
::ll::UntypedStorage< 8, 200 > mUnke13a5c
 
::ll::UntypedStorage< 8, 200 > mUnk94a0af
 
::ll::UntypedStorage< 4, 4 > mUnk9b05e5
 
::ll::UntypedStorage< 4, 4 > mUnkc35383
 
::ll::UntypedStorage< 4, 4 > mUnk98643d
 
::ll::UntypedStorage< 4, 4 > mUnk5aa67b
 
::ll::UntypedStorage< 1, 1 > mUnkb95b3a
 
::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: