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 _isEmptyContainer(::Container& container, int face);
34
35 MCAPI bool _isFullContainer(::Container& container, int);
36
37 MCAPI bool
38 _pushOutItems(::BlockSource& region, ::Container& fromContainer, ::Vec3 const& position, int attachedFace);
39
40 MCAPI bool _tryAddItemsFromPos(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
41
42 MCAPI bool
43 _tryMoveInItem(::BlockSource& region, ::Container& container, ::ItemStack& item, int slot, int face, int itemCount);
44
45 MCAPI bool _tryMoveItems(
46 ::BlockSource& region,
47 ::Container& fromContainer,
48 ::Vec3 const& pos,
49 int attachedFace,
50 bool canPushItems
51 );
52
53 MCAPI bool _tryPullInItemsFromAboveContainer(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
54
55 MCAPI bool
56 _tryPushToComposter(::BlockSource& region, ::Container& fromContainer, ::BlockPos hopperPos, int facingDirection);
57
58 MCAPI bool _tryTakeInItemFromSlot(
59 ::BlockSource& region,
60 ::Container& toContainer,
61 ::Container& fromContainer,
62 int slot,
63 int face
64 );
65 // NOLINTEND
66};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Container.h:30
Definition Hopper.h:14
Definition ItemStack.h:25
Definition Vec3.h:10