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 int getItemWeightInStorageItem(::ItemStackBase const& item, ::std::optional<uchar> amount);
19
20MCNAPI ::std::optional<::FullContainerName> getStorageItemID(::ItemStackBase const& storageItem);
21
22MCNAPI ::std::optional<::StorageItemUtility::StorageItemWeightData>
23getStorageItemWeightDataServer(::ItemStackBase const& item);
24
25MCNAPI void removeSerializedContainerIDs(::ItemStack& item);
26
27MCNAPI ::std::unique_ptr<::CompoundTag> saveDataFixupBySaveContext(
28 ::std::unique_ptr<::CompoundTag> tag,
29 ::SaveContext const& saveContext,
30 ::ItemStackBase const& item
31);
32
33MCNAPI void tryFlattenStorageItem(::ItemStackBase& item);
34
35MCNAPI void tryRemoveStorageItemContentData(::ItemStackBase& item);
36// NOLINTEND
37
38} // namespace StorageItemUtility
Definition CompoundTag.h:13
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition SaveContext.h:5
Definition FullContainerName.h:8