30 enum class Source :
int {
37 enum class Target :
int {
45 enum class TargetIdentifier :
int {
54 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
55 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mMinePosition;
56 ::ll::TypedStorage<4, 4, ::LootCommand::Target> mTarget;
57 ::ll::TypedStorage<4, 4, ::LootCommand::Source> mSource;
58 ::ll::TypedStorage<4, 4, ::LootCommand::TargetIdentifier> mReplacementIdentifier;
59 ::ll::TypedStorage<8, 32, ::std::string> mLootTable;
60 ::ll::TypedStorage<8, 32, ::std::string> mTool;
61 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mEntitySource;
62 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mEntityTarget;
63 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mPlayerTarget;
64 ::ll::TypedStorage<4, 4, ::BlockSlot> mBlockSlot;
65 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::EquipmentSlot> mEquipmentSlot;
66 ::ll::TypedStorage<4, 4, int> mSlotId;
67 ::ll::TypedStorage<4, 4, int> mConsecutiveSlotFillCount;
68 ::ll::TypedStorage<1, 1, bool> mSlotFillCountIsSet;
77 virtual ~LootCommand() ;
79 virtual ~LootCommand() =
default;
89 MCAPI ::std::optional<::std::vector<::ItemStack>> _getItemsFromSource(
94 ::DimensionType dimensionId
100 MCAPI
void _outputSuccess(
::CommandOutput& output,
int numItemsDropped)
const;
102 MCAPI
void _placeItemsInTarget(
105 ::std::vector<::ItemStack>& items