Skip to content
LeviMC
English
AutoLightDark
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/platform/brstd/function_ref.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class BlockSource;
14class Container;
15class Level;
16class Mob;
17// clang-format on
18
19namespace DispensableItemUtils {
20// functions
21// NOLINTBEGIN
22MCNAPI bool canDispenseToHumanoids(::Mob const& mob);
23
24MCNAPI bool canDispenseToNonPlayerHumanoids(::Mob const& mob);
25
26MCAPI void spawnLoot(::Level& level, ::Actor& actor, ::std::string const& lootTable);
27
28MCNAPI bool tryDispenseEquipment(
29 ::BlockSource& region,
30 ::Container& container,
31 int slot,
32 ::BlockPos pos,
33 ::SharedTypes::Legacy::EquipmentSlot equipmentSlot,
34 ::brstd::function_ref<bool(::Mob const&)> canDispenseTo,
35 bool canReplaceEquipment
36);
37// NOLINTEND
38
39} // namespace DispensableItemUtils
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition Level.h:255
Definition Mob.h:58