LeviLamina
Loading...
Searching...
No Matches
DispensableItemUtils.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#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
8#include "mc/platform/brstd/function_ref.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14class BlockSource;
15class Container;
16class Level;
17class Mob;
18// clang-format on
19
20namespace DispensableItemUtils {
21// functions
22// NOLINTBEGIN
23MCAPI bool canDispenseToHumanoids(::Mob const& mob);
24
25MCAPI bool canDispenseToNonPlayerHumanoids(::Mob const& mob);
26
27MCAPI void spawnLoot(::Level& level, ::Actor& actor, ::std::string const& lootTable);
28
29MCAPI bool tryDispenseArmor(
30 ::BlockSource& region,
31 ::Container& container,
32 int slot,
33 ::BlockPos pos,
34 ::SharedTypes::Legacy::ArmorSlot armorSlot
35);
36
37MCAPI bool tryDispenseEquipment(
38 ::BlockSource& region,
39 ::Container& container,
40 int slot,
41 ::BlockPos pos,
42 ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
43 ::brstd::function_ref<bool(::Mob const&)> canDispenseTo,
44 bool canReplaceEquipment
45);
46// NOLINTEND
47
48} // namespace DispensableItemUtils
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Container.h:34
Definition Level.h:255
Definition Mob.h:57