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;
9class ItemStackBase;
10class SaveContext;
12namespace StorageItemUtility { class StorageItemWeightData; }
13// clang-format on
14
15namespace StorageItemUtility {
16// functions
17// NOLINTBEGIN
18MCAPI void _tryFlattenStorageItem(::ItemStackBase& item, ::SaveContext const& context);
19
20MCAPI int getItemWeightInStorageItem(::ItemStackBase const& item, ::std::optional<uchar> amount);
21
22MCAPI ::std::optional<::FullContainerName> getStorageItemID(::ItemStackBase const& storageItem);
23
24MCAPI_C ::std::optional<::StorageItemUtility::StorageItemWeightData>
25getStorageItemWeightDataClient(::ItemStackBase const& item, ::ContainerManagerController& containerManagerController);
26
27MCAPI ::std::optional<::StorageItemUtility::StorageItemWeightData>
28getStorageItemWeightDataServer(::ItemStackBase const& item);
29
30MCAPI ::std::unique_ptr<::CompoundTag> saveDataFixupBySaveContext(
31 ::std::unique_ptr<::CompoundTag> tag,
32 ::SaveContext const& saveContext,
33 ::ItemStackBase const& item
34);
35
36MCAPI void tryFlattenStorageItem(::ItemStackBase& item);
37
38MCAPI void tryMoveStorageItem(::ItemStackBase& item);
39
40MCAPI void tryRemoveStorageItemContentData(::ItemStackBase& item);
41// NOLINTEND
42
43} // namespace StorageItemUtility
Definition CompoundTag.h:23
Definition ContainerManagerController.h:47
Definition ItemStackBase.h:44
Definition SaveContext.h:5
Definition StorageItemWeightData.h:7
Definition FullContainerName.h:8