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