LeviLamina
Loading...
Searching...
No Matches
ShareableComponent Class Reference

Public Member Functions

MCAPI int getCountToPickUp (::Actor const &owner, ::ItemStack const &item) const
 
MCAPI int getSlotToSwap (::Actor const &owner, ::ItemActor const &itemActor) const
 
MCAPI int hasSurplus (::Actor const &owner, ::ItemStack const &item, ::ItemStack &resultStack, bool includeStackSizeofItem) const
 
MCAPI bool itemBelongsInInventory (::Actor const &owner, ::ItemStack const &item, bool canPickupToHandOrEquipment) const
 
MCAPI int wantsMore (::Actor const &owner, ::ItemStack const &item) const
 
MCAPI bool willPickup (::Actor const &owner, ::ItemStack const &item, bool canPickupAnyItem, bool canPickupToHandOrEquipment) const
 

Static Public Member Functions

static MCAPI bool _canPickupItem (::ItemStack const &item, ::ItemStack const &carriedItem, int maxAmount, bool singularPickupOnly)
 
static MCAPI bool _shouldReplaceItem (::ItemStack const &itemToReplace, ::ItemStack const &newItem, ::ShareableDefinition const &shareable, bool canPickupAnyItem)
 

Member Function Documentation

◆ getCountToPickUp()

MCAPI int ShareableComponent::getCountToPickUp ( ::Actor const & owner,
::ItemStack const & item ) const
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.

◆ getSlotToSwap()

MCAPI int ShareableComponent::getSlotToSwap ( ::Actor const & owner,
::ItemActor const & itemActor ) const
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.

◆ hasSurplus()

MCAPI int ShareableComponent::hasSurplus ( ::Actor const & owner,
::ItemStack const & item,
::ItemStack & resultStack,
bool includeStackSizeofItem ) const
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.

◆ itemBelongsInInventory()

MCAPI bool ShareableComponent::itemBelongsInInventory ( ::Actor const & owner,
::ItemStack const & item,
bool canPickupToHandOrEquipment ) const
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.

◆ wantsMore()

MCAPI int ShareableComponent::wantsMore ( ::Actor const & owner,
::ItemStack const & item ) const
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.

◆ willPickup()

MCAPI bool ShareableComponent::willPickup ( ::Actor const & owner,
::ItemStack const & item,
bool canPickupAnyItem,
bool canPickupToHandOrEquipment ) const
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.

◆ _canPickupItem()

static MCAPI bool ShareableComponent::_canPickupItem ( ::ItemStack const & item,
::ItemStack const & carriedItem,
int maxAmount,
bool singularPickupOnly )
static
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.

◆ _shouldReplaceItem()

static MCAPI bool ShareableComponent::_shouldReplaceItem ( ::ItemStack const & itemToReplace,
::ItemStack const & newItem,
::ShareableDefinition const & shareable,
bool canPickupAnyItem )
static
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: