Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
StorageItemUtility.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CompoundTag;
10class ItemStackBase;
11class SaveContext;
13namespace StorageItemUtility { class StorageItemWeightData; }
14// clang-format on
15
16namespace StorageItemUtility {
17// functions
18// NOLINTBEGIN
19MCAPI void _tryFlattenStorageItem(::ItemStackBase& item, ::SaveContext const& context);
20
21MCAPI int getItemWeightInStorageItem(::ItemStackBase const& item, ::std::optional<uchar> amount);
22
23#ifdef LL_PLAT_C
24MCAPI ::std::optional<::FullContainerName> getStorageItemID(::ItemStackBase const& storageItem);
25
26MCNAPI ::std::optional<::StorageItemUtility::StorageItemWeightData>
27getStorageItemWeightDataClient(::ItemStackBase const& item, ::ContainerManagerController& containerManagerController);
28#endif
29
30MCAPI ::std::optional<::StorageItemUtility::StorageItemWeightData>
31getStorageItemWeightDataServer(::ItemStackBase const& item);
32
33#ifdef LL_PLAT_S
34MCNAPI bool isStorageItemEmpty(::ItemStackBase const& storageItem, ::IContainerRegistryAccess& containerRegistryAccess);
35#endif
36
37MCNAPI ::std::unique_ptr<::CompoundTag> saveDataFixupBySaveContext(
38 ::std::unique_ptr<::CompoundTag> tag,
39 ::SaveContext const& saveContext,
40 ::ItemStackBase const& item
41);
42
43MCNAPI void tryFlattenStorageItem(::ItemStackBase& item);
44// NOLINTEND
45
46} // namespace StorageItemUtility
Definition CompoundTag.h:18
Definition ContainerManagerController.h:46
Definition IContainerRegistryAccess.h:14
Definition ItemStackBase.h:45
Definition SaveContext.h:5
Definition StorageItemWeightData.h:7
Definition FullContainerName.h:8