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 MCAPI int getCountToPickUp(::Actor const& owner, ::ItemStack const& item) const;
18
19 MCAPI int getSlotToSwap(::Actor const& owner, ::ItemActor const& itemActor) const;
20
21 MCAPI int hasSurplus(
22 ::Actor const& owner,
23 ::ItemStack const& item,
24 ::ItemStack& resultStack,
25 bool includeStackSizeofItem
26 ) const;
27
28 MCAPI bool
29 itemBelongsInInventory(::Actor const& owner, ::ItemStack const& item, bool canPickupToHandOrEquipment) const;
30
31 MCAPI int wantsMore(::Actor const& owner, ::ItemStack const& item) const;
32
33 MCAPI 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 MCAPI static bool
45 _canPickupItem(::ItemStack const& item, ::ItemStack const& carriedItem, int maxAmount, bool singularPickupOnly);
46
47 MCAPI 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:105
Definition ItemActor.h:29
Definition ItemStack.h:26
Definition ShareableComponent.h:13
Definition ShareableDefinition.h:14