Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
HopperComponent Class Reference
Inheritance diagram for HopperComponent:

Public Member Functions

MCAPI bool pullInItems (::Actor &owner)
MCAPI::Container * _getContainerInBlock (::BlockSource &region, ::Vec3 const &pos)
MCAPI ::std::vector<::Container * > _getContainersAt (::BlockSource &region, ::Vec3 const &pos)
MCAPI bool _pushOutItems (::BlockSource &region, ::Container &fromContainer, ::Vec3 const &position, int attachedFace)
MCAPI bool _tryAddItemsFromPos (::BlockSource &region, ::Container &toContainer, ::Vec3 const &pos)
MCAPI bool _tryMoveInItem (::BlockSource &region, ::Container &container, ::std::optional<::std::reference_wrapper<::ItemActor > > const &itemActor, ::ItemStack &item, int slot, int face, int itemCount)
MCAPI bool _tryMoveItems (::BlockSource &region, ::Container &fromContainer, ::Vec3 const &pos, int attachedFace, bool canPushItems)
MCAPI bool _tryMoveItems (::HopperCallbacks callbacks, ::BlockSource &region, ::Container &fromContainer, ::Vec3 const &pos, int attachedFace, bool canPushItems)
MCAPI bool _tryPullInItemsFromAboveContainer (::BlockSource &region, ::Container &toContainer, ::Vec3 const &pos)
MCAPI bool _tryPullInItemsFromWorld (::BlockSource &region, ::Container &toContainer, ::Vec3 const &pos)

Public Attributes

::ll::TypedStorage< 4, 12, ::BlockPos > mLastPosition
::ll::TypedStorage< 4, 4, int > mCooldownTime
::ll::TypedStorage< 4, 4, int > mMoveCooldownTime
::ll::TypedStorage< 1, 1, bool > mTransferedFromChestMinecart
::ll::TypedStorage< 1, 1, bool > mIsEntity
::ll::TypedStorage< 4, 4, int > mMoveItemSpeed
::ll::TypedStorage< 8, 128, ::HopperCallbacks > mCallbacks

Member Function Documentation

◆ _getContainersAt()

MCAPI ::std::vector<::Container * > Hopper::_getContainersAt ( ::BlockSource & region,
::Vec3 const & pos )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryMoveItems()

MCAPI bool Hopper::_tryMoveItems ( ::HopperCallbacks callbacks,
::BlockSource & region,
::Container & fromContainer,
::Vec3 const & pos,
int attachedFace,
bool canPushItems )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: