3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/shared_types/legacy/EquipmentSlot.h"
7#include "mc/world/item/HandSlot.h"
16namespace ActorInventoryUtils {
19MCAPI
void forEachItemOnActor(::Actor
const& actor, ::std::function<
void(::ItemStack
const&)> callback);
21MCAPI
void forEachItemOnActor(
23 ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
24 ::CommandIntegerRange
const& slot,
25 ::std::function<
void(::ItemStack
const&)> callback
28MCAPI
void forEachItemOnActorChest(
30 ::CommandIntegerRange
const& slot,
31 ::std::function<
void(::ItemStack
const&)> callback
34MCAPI
void forEachItemOnActorEnderChest(
36 ::CommandIntegerRange
const& slot,
37 ::std::function<
void(::ItemStack
const&)> callback
40MCAPI
void forEachItemOnActorEquippable(
42 ::CommandIntegerRange
const& slot,
43 ::std::function<
void(::ItemStack
const&)> callback
47forEachItemOnActorHandSlot(::Actor
const& actor, ::HandSlot slot, ::std::function<
void(::ItemStack
const&)> callback);
49MCAPI
void forEachItemOnActorHotbar(
51 ::CommandIntegerRange
const& slot,
52 ::std::function<
void(::ItemStack
const&)> callback
55MCAPI
void forEachItemOnActorInventory(
57 ::CommandIntegerRange
const& slot,
58 ::std::function<
void(::ItemStack
const&)> callback
61MCAPI ::ItemStack
const* getItem(::Actor
const& actor, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
int slotId);
Definition CommandIntegerRange.h:5
Definition ItemStack.h:26