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
MaterialReducerInputValidation.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/containers/managers/controllers/CraftableCompounds.h"
7
#include "mc/world/inventory/simulation/validation/ContainerValidationBase.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
BlockReducer
;
12
class
ContainerScreenContext
;
13
class
ItemStackBase
;
14
// clang-format on
15
16
class
MaterialReducerInputValidation
:
public
::ContainerValidationBase
{
17
public
:
18
// member variables
19
// NOLINTBEGIN
20
::ll::TypedStorage<8, 8, ::BlockReducer*> mBlockReducer;
21
::ll::TypedStorage<8, 264, ::CraftableCompounds> mCraftableCompounds;
22
// NOLINTEND
23
24
public
:
25
// virtual functions
26
// NOLINTBEGIN
27
virtual
bool
isItemAllowedInSlot(
28
::ContainerScreenContext
const
& screenContext,
29
int
const
slot,
30
::ItemStackBase
const
& item,
31
int
const
amount,
32
bool
33
)
const
/*override*/
;
34
35
virtual
int
getAvailableSetCount(
int
slot,
::ItemStackBase
const
& item)
const
/*override*/
;
36
37
virtual
int
getAllowedAddCount(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
/*override*/
;
38
39
virtual
int
getContainerOffset(
::ContainerScreenContext
const
& screenContext)
const
/*override*/
;
40
41
virtual
bool
canDestroy(
::ContainerScreenContext
const
& screenContext)
const
/*override*/
;
42
// NOLINTEND
43
44
public
:
45
// member functions
46
// NOLINTBEGIN
47
MCNAPI
bool
isItemAllowed
(
::ItemStackBase
const
& item)
const
;
48
// NOLINTEND
49
50
public
:
51
// virtual function thunks
52
// NOLINTBEGIN
53
MCNAPI
bool
$isItemAllowedInSlot
(
54
::ContainerScreenContext
const
& screenContext,
55
int
const
slot,
56
::ItemStackBase
const
& item,
57
int
const
amount,
58
bool
59
)
const
;
60
61
MCNAPI
int
$getAvailableSetCount
(
int
slot,
::ItemStackBase
const
& item)
const
;
62
63
MCNAPI
int
$getAllowedAddCount
(
::ContainerScreenContext
const
&,
::ItemStackBase
const
&)
const
;
64
65
MCNAPI
int
$getContainerOffset
(
::ContainerScreenContext
const
& screenContext)
const
;
66
67
MCNAPI
bool
$canDestroy
(
::ContainerScreenContext
const
& screenContext)
const
;
68
69
70
// NOLINTEND
71
72
public
:
73
// vftables
74
// NOLINTBEGIN
75
MCNAPI
static
void
**
$vftable
();
76
// NOLINTEND
77
};
BlockReducer
Definition
BlockReducer.h:14
ContainerScreenContext
Definition
ContainerScreenContext.h:16
ContainerValidationBase
Definition
ContainerValidationBase.h:12
ItemStackBase
Definition
ItemStackBase.h:45
MaterialReducerInputValidation
Definition
MaterialReducerInputValidation.h:16
MaterialReducerInputValidation::$canDestroy
MCAPI bool $canDestroy(::ContainerScreenContext const &screenContext) const
MaterialReducerInputValidation::$getAllowedAddCount
MCAPI int $getAllowedAddCount(::ContainerScreenContext const &, ::ItemStackBase const &) const
MaterialReducerInputValidation::$getAvailableSetCount
MCAPI int $getAvailableSetCount(int slot, ::ItemStackBase const &item) const
MaterialReducerInputValidation::$isItemAllowedInSlot
MCAPI bool $isItemAllowedInSlot(::ContainerScreenContext const &screenContext, int const slot, ::ItemStackBase const &item, int const amount, bool) const
MaterialReducerInputValidation::$getContainerOffset
MCAPI int $getContainerOffset(::ContainerScreenContext const &screenContext) const
MaterialReducerInputValidation::$vftable
static MCAPI void ** $vftable()
MaterialReducerInputValidation::isItemAllowed
MCAPI bool isItemAllowed(::ItemStackBase const &item) const
src
mc
world
inventory
simulation
validation
MaterialReducerInputValidation.h
Generated on
for LeviLamina by
1.16.1