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 forEachItemOnActorEquippable(
41 ::Actor const& actor,
42 ::CommandIntegerRange const& slot,
43 ::std::function<void(::ItemStack const&)> callback
44);
45
46MCNAPI void
47forEachItemOnActorHandSlot(::Actor const& actor, ::HandSlot slot, ::std::function<void(::ItemStack const&)> callback);
48
49MCNAPI void forEachItemOnActorHotbar(
50 ::Actor const& actor,
51 ::CommandIntegerRange const& slot,
52 ::std::function<void(::ItemStack const&)> callback
53);
54
55MCNAPI void forEachItemOnActorInventory(
56 ::Actor const& actor,
57 ::CommandIntegerRange const& slot,
58 ::std::function<void(::ItemStack const&)> callback
59);
60
61MCNAPI ::ItemStack const* getItem(::Actor const& actor, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot, int slotId);
62// NOLINTEND
63
64} // namespace ActorInventoryUtils
Definition Actor.h:103
Definition CommandIntegerRange.h:5
Definition ItemStack.h:25