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