LeviLamina
Loading...
Searching...
No Matches
Hopper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/HopperCallbacks.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockSource;
11class Container;
12class ItemActor;
13class ItemStack;
14class Vec3;
15// clang-format on
16
17class Hopper {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mCooldownTime;
22 ::ll::TypedStorage<4, 4, int> mMoveCooldownTime;
23 ::ll::TypedStorage<1, 1, bool> mTransferedFromChestMinecart;
24 ::ll::TypedStorage<1, 1, bool> mIsEntity;
25 ::ll::TypedStorage<4, 4, int> mMoveItemSpeed;
26 ::ll::TypedStorage<8, 128, ::HopperCallbacks> mCallbacks;
27 // NOLINTEND
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCAPI ::Container* _getContainerInBlock(::BlockSource& region, ::Vec3 const& pos);
33
34 MCAPI ::std::vector<::Container*> _getContainersAt(::BlockSource& region, ::Vec3 const& pos);
35
36 MCAPI bool
37 _pushOutItems(::BlockSource& region, ::Container& fromContainer, ::Vec3 const& position, int attachedFace);
38
39 MCAPI bool _tryAddItemsFromPos(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
40
41 MCAPI bool _tryMoveInItem(
42 ::BlockSource& region,
43 ::Container& container,
44 ::std::optional<::std::reference_wrapper<::ItemActor>> const& itemActor,
45 ::ItemStack& item,
46 int slot,
47 int face,
48 int itemCount
49 );
50
51 MCAPI bool _tryMoveItems(
52 ::BlockSource& region,
53 ::Container& fromContainer,
54 ::Vec3 const& pos,
55 int attachedFace,
56 bool canPushItems
57 );
58
59 MCAPI bool _tryMoveItems(
60 ::HopperCallbacks callbacks,
61 ::BlockSource& region,
62 ::Container& fromContainer,
63 ::Vec3 const& pos,
64 int attachedFace,
65 bool canPushItems
66 );
67
68 MCAPI bool _tryPullInItemsFromAboveContainer(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
69
70 MCAPI bool _tryPullInItemsFromWorld(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
71 // NOLINTEND
72};
Definition BlockSource.h:71
Definition Container.h:35
Definition Hopper.h:17
Definition ItemActor.h:30
Definition ItemStack.h:26
Definition Vec3.h:10
Definition HopperCallbacks.h:11