Skip to content
LeviMC
English
AutoLightDark
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/EquipmentSlot.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class ItemStack;
13class SimpleContainer;
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 forEachItemOnActorHotbar(
29 ::Actor const& actor,
30 ::CommandIntegerRange const& slot,
31 ::std::function<void(::ItemStack const&)> callback
32);
33
34MCNAPI void forEachItemOnActorInventory(
35 ::Actor const& actor,
36 ::CommandIntegerRange const& slot,
37 ::std::function<void(::ItemStack const&)> callback
38);
39
40MCAPI float getArmorCoverPercentage(::SimpleContainer const& armorContainer);
41
42MCNAPI ::ItemStack const* getItem(::Actor const& actor, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot, int slotId);
43// NOLINTEND
44
45} // namespace ActorInventoryUtils
Definition Actor.h:116
Definition CommandIntegerRange.h:5
Definition ItemStack.h:26
Definition SimpleContainer.h:14