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