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<4, 4, int> mMoveCooldownTime;
20 ::ll::TypedStorage<1, 1, bool> mTransferedFromChestMinecart;
21 ::ll::TypedStorage<1, 1, bool> mIsEntity;
22 ::ll::TypedStorage<4, 4, int> mMoveItemSpeed;
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI bool _addItem(::BlockSource& region, ::Container& container, ::ItemStack& item, int face, int itemCount);
29
30 MCAPI ::Container* _getContainerInBlock(::BlockSource& region, ::Vec3 const& pos);
31
32 MCAPI ::std::vector<::Container*> _getContainersAt(::BlockSource& region, ::Vec3 const& pos);
33
34 MCAPI bool
35 _pushOutItems(::BlockSource& region, ::Container& fromContainer, ::Vec3 const& position, int attachedFace);
36
37 MCAPI bool _tryAddItemsFromPos(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
38
39 MCAPI bool
40 _tryMoveInItem(::BlockSource& region, ::Container& container, ::ItemStack& item, int slot, int face, int itemCount);
41
42 MCAPI bool _tryMoveItems(
43 ::BlockSource& region,
44 ::Container& fromContainer,
45 ::Vec3 const& pos,
46 int attachedFace,
47 bool canPushItems
48 );
49
50 MCAPI bool _tryPullInItemsFromAboveContainer(::BlockSource& region, ::Container& toContainer, ::Vec3 const& pos);
51
52 MCAPI bool
53 _tryPushToComposter(::BlockSource& region, ::Container& fromContainer, ::BlockPos hopperPos, int facingDirection);
54
55 MCAPI bool _tryTakeInItemFromSlot(
56 ::BlockSource& region,
57 ::Container& toContainer,
58 ::Container& fromContainer,
59 int slot,
60 int face
61 );
62 // NOLINTEND
63};
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Container.h:33
Definition Hopper.h:14
Definition ItemStack.h:26
Definition Vec3.h:10