Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
ArmorContainerValidation.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/inventory/simulation/validation/ContainerValidationBase.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
Container
;
11
class
ContainerScreenContext
;
12
class
ItemStackBase
;
13
// clang-format on
14
15
class
ArmorContainerValidation
:
public
::ContainerValidationBase
{
16
public
:
17
// virtual functions
18
// NOLINTBEGIN
19
virtual
bool
isItemAllowedInSlot(
20
::ContainerScreenContext
const
&,
21
int
const
slot,
22
::ItemStackBase
const
& item,
23
int
const
amount,
24
bool
25
)
const
/*override*/
;
26
27
virtual
int
getAvailableSetCount(
int
const
slot,
::ItemStackBase
const
& item)
const
/*override*/
;
28
29
virtual
bool
isItemAllowedToRemove(
::ContainerScreenContext
const
& screenContext,
::ItemStackBase
const
& item)
const
30
/*override*/
;
31
32
virtual
int
getAllowedAddCount(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
/*override*/
;
33
34
virtual
bool
canItemMoveToContainer(
::ItemStackBase
const
& item)
const
/*override*/
;
35
36
virtual
int
getContainerSize(
::ContainerScreenContext
const
& screenContext,
::Container
const
& container)
const
37
/*override*/
;
38
// NOLINTEND
39
40
public
:
41
// virtual function thunks
42
// NOLINTBEGIN
43
MCNAPI
bool
$isItemAllowedInSlot
(
44
::ContainerScreenContext
const
&,
45
int
const
slot,
46
::ItemStackBase
const
& item,
47
int
const
amount,
48
bool
49
)
const
;
50
51
MCNAPI
int
$getAvailableSetCount
(
int
const
slot,
::ItemStackBase
const
& item)
const
;
52
53
MCNAPI
bool
54
$isItemAllowedToRemove
(
::ContainerScreenContext
const
& screenContext,
::ItemStackBase
const
& item)
const
;
55
56
MCNAPI
int
$getAllowedAddCount
(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
;
57
58
MCNAPI
bool
$canItemMoveToContainer
(
::ItemStackBase
const
& item)
const
;
59
60
MCNAPI
int
$getContainerSize
(
::ContainerScreenContext
const
& screenContext,
::Container
const
& container)
const
;
61
62
63
// NOLINTEND
64
65
public
:
66
// vftables
67
// NOLINTBEGIN
68
MCNAPI
static
void
**
$vftable
();
69
// NOLINTEND
70
};
ArmorContainerValidation
Definition
ArmorContainerValidation.h:15
ArmorContainerValidation::$getAllowedAddCount
MCAPI int $getAllowedAddCount(::ContainerScreenContext const &, ::ItemStackBase const &) const
ArmorContainerValidation::$isItemAllowedToRemove
MCAPI bool $isItemAllowedToRemove(::ContainerScreenContext const &screenContext, ::ItemStackBase const &item) const
ArmorContainerValidation::$canItemMoveToContainer
MCAPI bool $canItemMoveToContainer(::ItemStackBase const &item) const
ArmorContainerValidation::$getContainerSize
MCAPI int $getContainerSize(::ContainerScreenContext const &screenContext, ::Container const &container) const
ArmorContainerValidation::$isItemAllowedInSlot
MCAPI bool $isItemAllowedInSlot(::ContainerScreenContext const &, int const slot, ::ItemStackBase const &item, int const amount, bool) const
ArmorContainerValidation::$getAvailableSetCount
MCAPI int $getAvailableSetCount(int const slot, ::ItemStackBase const &item) const
ArmorContainerValidation::$vftable
static MCAPI void ** $vftable()
ContainerScreenContext
Definition
ContainerScreenContext.h:16
ContainerValidationBase
Definition
ContainerValidationBase.h:12
Container
Definition
Container.h:36
ItemStackBase
Definition
ItemStackBase.h:45
src
mc
world
inventory
simulation
validation
ArmorContainerValidation.h
Generated on
for LeviLamina by
1.16.1