LeviLamina
Loading...
Searching...
No Matches
TransportItemsUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/EnumSet.h"
7#include "mc/world/level/block/actor/BlockActorType.h"
8#include "mc/world/level/block/actor/ChestBlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class Mob;
15// clang-format on
16
17namespace TransportItemsUtils {
18// functions
19// NOLINTBEGIN
20MCNAPI bool isValidTargetContainer(
21 ::Mob const& mob,
22 ::BlockPos const& targetPosition,
23 ::TransportItemsGoalSettings const& settings
24);
25
26MCNAPI ::std::weak_ptr<::ChestBlockActor::ChestCloser>
27openContainer(::Mob& mob, ::BlockPos const& targetContainerPosition);
28
29MCNAPI bool tryPutItem(
30 ::Mob& mob,
31 ::BlockPos const& targetContainerPosition,
32 ::TransportItemsGoalSettings const& settings,
33 bool dryRun
34);
35
36MCNAPI bool tryTakeItem(
37 ::Mob& mob,
38 ::BlockPos const& targetContainerPosition,
39 ::TransportItemsGoalSettings const& settings,
40 bool dryRun
41);
42// NOLINTEND
43
44// static variables
45// NOLINTBEGIN
46MCNAPI ::Bedrock::EnumSet<::BlockActorType, 61> const& VALID_DESTINATION_BLOCKACTOR_TYPES();
47
48MCNAPI ::Bedrock::EnumSet<::BlockActorType, 61> const& VALID_SOURCE_BLOCKACTOR_TYPES();
49// NOLINTEND
50
51} // namespace TransportItemsUtils
Definition BlockPos.h:17
Definition Mob.h:47
Definition TransportItemsGoalSettings.h:14