LeviLamina
Loading...
Searching...
No Matches
ShareableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class ItemActor;
9class ItemStack;
11// clang-format on
12
14public:
15 // member functions
16 // NOLINTBEGIN
17 MCNAPI int getCountToPickUp(::Actor const& owner, ::ItemStack const& item) const;
18
19 MCNAPI int getSlotToSwap(::Actor const& owner, ::ItemActor const& itemActor) const;
20
21 MCNAPI int hasSurplus(
22 ::Actor const& owner,
23 ::ItemStack const& item,
24 ::ItemStack& resultStack,
25 bool includeStackSizeofItem
26 ) const;
27
28 MCNAPI bool
29 itemBelongsInInventory(::Actor const& owner, ::ItemStack const& item, bool canPickupToHandOrEquipment) const;
30
31 MCNAPI int wantsMore(::Actor const& owner, ::ItemStack const& item) const;
32
33 MCNAPI bool willPickup(
34 ::Actor const& owner,
35 ::ItemStack const& item,
36 bool canPickupAnyItem,
37 bool canPickupToHandOrEquipment
38 ) const;
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCNAPI static bool
45 _canPickupItem(::ItemStack const& item, ::ItemStack const& carriedItem, int maxAmount, bool singularPickupOnly);
46
47 MCNAPI static bool _shouldReplaceItem(
48 ::ItemStack const& itemToReplace,
49 ::ItemStack const& newItem,
50 ::ShareableDefinition const& shareable,
51 bool canPickupAnyItem
52 );
53 // NOLINTEND
54};
Definition Actor.h:102
Definition ItemActor.h:27
Definition ItemStack.h:23
Definition ShareableComponent.h:13
MCAPI int getCountToPickUp(::Actor const &owner, ::ItemStack const &item) const
MCAPI int getSlotToSwap(::Actor const &owner, ::ItemActor const &itemActor) const
static MCAPI bool _canPickupItem(::ItemStack const &item, ::ItemStack const &carriedItem, int maxAmount, bool singularPickupOnly)
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 MCAPI bool _shouldReplaceItem(::ItemStack const &itemToReplace, ::ItemStack const &newItem, ::ShareableDefinition const &shareable, bool canPickupAnyItem)
MCAPI bool itemBelongsInInventory(::Actor const &owner, ::ItemStack const &item, bool canPickupToHandOrEquipment) const
MCAPI int hasSurplus(::Actor const &owner, ::ItemStack const &item, ::ItemStack &resultStack, bool includeStackSizeofItem) const
Definition ShareableDefinition.h:14