LeviLamina
Loading...
Searching...
No Matches
ActorInventoryUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/item/EquipmentSlot.h"
7#include "mc/world/item/HandSlot.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class ItemStack;
14// clang-format on
15
16namespace ActorInventoryUtils {
17// functions
18// NOLINTBEGIN
19MCNAPI void forEachItemOnActor(::Actor const& actor, ::std::function<void(::ItemStack const&)> callback);
20
21MCNAPI void forEachItemOnActor(
22 ::Actor const& actor,
23 ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
24 ::CommandIntegerRange const& slot,
25 ::std::function<void(::ItemStack const&)> callback
26);
27
28MCNAPI void forEachItemOnActorChest(
29 ::Actor const& actor,
30 ::CommandIntegerRange const& slot,
31 ::std::function<void(::ItemStack const&)> callback
32);
33
34MCNAPI void forEachItemOnActorEnderChest(
35 ::Actor const& actor,
36 ::CommandIntegerRange const& slot,
37 ::std::function<void(::ItemStack const&)> callback
38);
39
40MCNAPI void
41forEachItemOnActorHandSlot(::Actor const& actor, ::HandSlot slot, ::std::function<void(::ItemStack const&)> callback);
42
43MCNAPI void forEachItemOnActorHotbar(
44 ::Actor const& actor,
45 ::CommandIntegerRange const& slot,
46 ::std::function<void(::ItemStack const&)> callback
47);
48
49MCNAPI void forEachItemOnActorInventory(
50 ::Actor const& actor,
51 ::CommandIntegerRange const& slot,
52 ::std::function<void(::ItemStack const&)> callback
53);
54
55MCNAPI ::ItemStack const* getItem(::Actor const& actor, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot, int slotId);
56// NOLINTEND
57
58} // namespace ActorInventoryUtils
Definition Actor.h:102
Definition CommandIntegerRange.h:5
Definition ItemStack.h:23