Skip to content
LeviMC
English
AutoLightDark
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#ifdef LL_PLAT_S
19 LLNDAPI static ::ItemLockMode getItemLockMode(::ItemStackBase const& item);
20#endif
21
22public:
23 // static functions
24 // NOLINTBEGIN
25 MCNAPI static bool _parseItemLockMode(::ItemStackBase& item, ::Json::Value const& data);
26
27 MCNAPI static bool addItemLockMode(::ItemStackBase& item, ::Json::Value const& data);
28
29 MCAPI static bool addKeepOnDeath(::ItemStackBase& item, ::Json::Value const& data);
30
31#ifdef LL_PLAT_C
32 MCNAPI static void
33 appendItemLockHoverText(::Bedrock::Safety::RedactableString& formattedHoverText, ::ItemStackBase const& item);
34
35 MCNAPI static void
36 appendItemLockPopupNoticeText(::std::string& formattedPopupNoticeText, ::ItemStackBase const& item);
37
38 MCNAPI static bool canDropItem(::Actor const& actor, ::ItemStackBase const& item);
39#endif
40
41 MCNAPI static bool canMoveItemSlots(::Actor const& actor, ::ItemStackBase const& item);
42
43#ifdef LL_PLAT_C
44 MCAPI static ::ItemLockMode getItemLockMode(::ItemStackBase const& item);
45#endif
46
47 MCAPI static bool isItemLocked(::ItemStackBase const& item);
48
49 MCNAPI static void setItemLockMode(::ItemStackBase& item, ::ItemLockMode lockMode);
50
51 MCNAPI static bool shouldKeepOnDeath(::ItemStackBase const& item);
52
53 MCNAPI static bool shouldKeepOnDeath(::Actor const& actor, ::ItemStackBase const& item);
54 // NOLINTEND
55};
Definition Actor.h:116
Definition RedactableString.h:10
Definition ItemLockHelper.h:16
static MCAPI void setItemLockMode(::ItemStackBase &item, ::ItemLockMode lockMode)
static MCAPI bool canMoveItemSlots(::Actor const &actor, ::ItemStackBase const &item)
static MCAPI bool _parseItemLockMode(::ItemStackBase &item, ::Json::Value const &data)
static MCAPI bool shouldKeepOnDeath(::ItemStackBase const &item)
static MCAPI bool addItemLockMode(::ItemStackBase &item, ::Json::Value const &data)
static MCAPI bool shouldKeepOnDeath(::Actor const &actor, ::ItemStackBase const &item)
Definition ItemStackBase.h:45
Definition Value.h:16