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 ::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 $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 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 (int input, int low, int high, ::CommandOutput &output)
static MCAPI bool validRange (float input, float low, float high, ::CommandOutput &output)
static MCAPI ::std::string const & WILDCARD_TOKEN ()

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.

◆ $vftable()

MCAPI void ** LootCommand::$vftable ( )
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.

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