23 ::ll::TypedStorage<4, 4, int> mSelected;
24 ::ll::TypedStorage<8, 152, ::ItemStack> mInfiniteItem;
25 ::ll::TypedStorage<1, 1, ::ContainerID> mSelectedContainerId;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Inventory>> mInventory;
27 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mComplexItems;
28 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::HudContainerManagerModel>> mHudContainerManager;
36 virtual void containerSizeChanged(
int) ;
38 virtual void containerContentChanged(
int slot) ;
40 virtual void createTransactionContext(
42 ::std::function<
void()> execute
50 MCAPI ::std::weak_ptr<::HudContainerManagerModel> _getHudContainerManagerModel()
const;
53 MCAPI
bool add(
::ItemStack& item,
bool linkEmptySlot);
59 MCAPI
int clearInventory(
int resize);
62 MCAPI
void clearInventoryWithDefault(
bool isCreative);
65 MCAPI
void clearSlot(
int slot, ::ContainerID containerId);
67 MCAPI
void clearVanishEnchantedItemsOnDeath();
70 MCAPI
bool dropSlot(
int slot,
bool onlyClearContainer,
bool dropAll, ::ContainerID containerId,
bool randomly);
73 MCAPI
int getContainerSize(::ContainerID containerId)
const;
75 MCAPI
int getFirstEmptySlot()
const;
77 MCAPI
int getHotbarSize()
const;
79 MCAPI ::ItemStack
const& getItem(
int slot, ::ContainerID containerId)
const;
81 MCAPI
int getItemCount(::std::function<
bool(
::ItemStack const&)> comparator);
83 MCFOLD ::ContainerID getSelectedContainerId();
85 MCAPI ::ItemStack
const& getSelectedItem()
const;
87 MCAPI ::PlayerInventorySlotData getSelectedSlot()
const;
89 MCAPI
int getSlotWithItem(
::ItemStack const& item,
bool checkAux,
bool checkData)
const;
91 MCAPI ::std::vector<::ItemStack const*> getSlots()
const;
93 MCAPI
void removeItem(
int slot,
int count, ::ContainerID containerId);
97 MCAPI
bool removeResource(
int type);
99 MCAPI
int removeResource(
::ItemStack const& item,
bool requireExactAux,
bool requireExactData,
int maxCount);
101 MCAPI
bool selectSlot(
int slot, ::ContainerID containerId);
103 MCAPI
void serverInitItemStackId(
int containerSlot);
106 serverInitItemStackIds(
int containerSlot,
int count, ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged);
108 MCAPI
void setContainerChanged(
int slot);
111 MCAPI
void setContainerSize(
int size, ::ContainerID containerId);
114 MCAPI
void setItem(
int slot,
::ItemStack const& item, ::ContainerID containerId,
bool forceBalanced);
116 MCAPI
void setSelectedItem(
::ItemStack const& item);
118 MCAPI
void setupDefaultInventory();
120 MCAPI
void swapSlots(
int from,
int to);
132 MCFOLD
void $containerSizeChanged(
int);
134 MCAPI
void $containerContentChanged(
int slot);
136 MCAPI
void $createTransactionContext(
138 ::std::function<
void()> execute
147 MCAPI
static void** $vftableForContainerSizeChangeListener();
149 MCAPI
static void** $vftableForContainerContentChangeListener();
Definition ContainerContentChangeListener.h:5