3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/shared_types/legacy/EquipmentSlot.h"
7#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
8#include "mc/platform/brstd/function_ref.h"
20namespace DispensableItemUtils {
23MCAPI
bool canDispenseToHumanoids(::Mob
const& mob);
25MCAPI
bool canDispenseToNonPlayerHumanoids(::Mob
const& mob);
27MCAPI
void spawnLoot(::Level& level, ::Actor& actor, ::std::string
const& lootTable);
29MCAPI
bool tryDispenseArmor(
30 ::BlockSource& region,
31 ::Container& container,
34 ::SharedTypes::Legacy::ArmorSlot armorSlot
37MCAPI
bool tryDispenseEquipment(
38 ::BlockSource& region,
39 ::Container& container,
42 ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
43 ::brstd::function_ref<
bool(::Mob
const&)> canDispenseTo,
44 bool canReplaceEquipment
Definition BlockSource.h:73
Definition Container.h:34