LeviLamina
Loading...
Searching...
No Matches
ItemLockHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ItemLockMode.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class ItemStackBase;
12namespace Bedrock::Safety { class RedactableString; }
13namespace Json { class Value; }
14// clang-format on
15
17public:
18 // static functions
19 // NOLINTBEGIN
20 MCAPI static bool _parseItemLockMode(::ItemStackBase& item, ::Json::Value const& data);
21
22 MCAPI_C static void
23 appendItemLockHoverText(::Bedrock::Safety::RedactableString& formattedHoverText, ::ItemStackBase const& item);
24
25 MCAPI_C static void
26 appendItemLockPopupNoticeText(::std::string& formattedPopupNoticeText, ::ItemStackBase const& item);
27
28 MCAPI static bool canMoveItemSlots(::Actor const& actor, ::ItemStackBase const& item);
29
30 MCAPI static ::ItemLockMode getItemLockMode(::ItemStackBase const& item);
31
32 MCAPI static bool isItemLocked(::ItemStackBase const& item);
33
34 MCAPI static bool removeItemLockMode(::ItemStackBase& item);
35
36 MCAPI static bool removeKeepOnDeath(::ItemStackBase& item);
37
38 MCAPI static bool shouldKeepOnDeath(::ItemStackBase const& item);
39
40 MCAPI static bool shouldKeepOnDeath(::Actor const& actor, ::ItemStackBase const& item);
41 // NOLINTEND
42};
Definition Actor.h:105
Definition RedactableString.h:10
Definition ItemLockHelper.h:16
Definition ItemStackBase.h:44
Definition Value.h:16