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
PreviewContainerValidation.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
PreviewContainerValidation
:
public
::ContainerValidationBase
{
16
public
:
17
// virtual functions
18
// NOLINTBEGIN
19
virtual
~PreviewContainerValidation
()
/*override*/
=
default
;
20
21
virtual
bool
isItemAllowedInSlot(
22
::ContainerScreenContext
const
& screenContext,
23
int
const
slot,
24
::ItemStackBase
const
& item,
25
int
const
amount,
26
bool
27
)
const
/*override*/
;
28
29
virtual
int
getAllowedAddCount(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
/*override*/
;
30
31
virtual
bool
isValidSlotForContainer(
32
::ContainerScreenContext
const
& screenContext,
33
::Container
const
& container,
34
int
const
slot
35
)
const
/*override*/
;
36
// NOLINTEND
37
38
public
:
39
// virtual function thunks
40
// NOLINTBEGIN
41
MCNAPI
bool
$isItemAllowedInSlot
(
42
::ContainerScreenContext
const
& screenContext,
43
int
const
slot,
44
::ItemStackBase
const
& item,
45
int
const
amount,
46
bool
47
)
const
;
48
49
MCNAPI
int
$getAllowedAddCount
(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
;
50
51
MCNAPI
bool
$isValidSlotForContainer
(
52
::ContainerScreenContext
const
& screenContext,
53
::Container
const
& container,
54
int
const
slot
55
)
const
;
56
57
58
// NOLINTEND
59
};
ContainerScreenContext
Definition
ContainerScreenContext.h:16
ContainerValidationBase
Definition
ContainerValidationBase.h:12
Container
Definition
Container.h:36
ItemStackBase
Definition
ItemStackBase.h:45
PreviewContainerValidation
Definition
PreviewContainerValidation.h:15
PreviewContainerValidation::$isItemAllowedInSlot
MCAPI bool $isItemAllowedInSlot(::ContainerScreenContext const &screenContext, int const slot, ::ItemStackBase const &item, int const amount, bool) const
PreviewContainerValidation::$isValidSlotForContainer
MCAPI bool $isValidSlotForContainer(::ContainerScreenContext const &screenContext, ::Container const &container, int const slot) const
PreviewContainerValidation::$getAllowedAddCount
MCAPI int $getAllowedAddCount(::ContainerScreenContext const &, ::ItemStackBase const &) const
src
mc
world
inventory
simulation
validation
PreviewContainerValidation.h
Generated on
for LeviLamina by
1.16.1