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