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
10
class
Actor
;
11
class
ItemStackBase
;
12
namespace
Bedrock::Safety {
class
RedactableString
; }
13
namespace
Json {
class
Value
; }
14
// clang-format on
15
16
class
ItemLockHelper
{
17
public
:
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
};
Actor
Definition
Actor.h:105
Bedrock::Safety::RedactableString
Definition
RedactableString.h:10
ItemLockHelper
Definition
ItemLockHelper.h:16
ItemStackBase
Definition
ItemStackBase.h:44
Json::Value
Definition
Value.h:16
src
mc
world
item
ItemLockHelper.h
Generated on
for LeviLamina by
1.16.1