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
IScriptItemCustomComponentReader.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7
#include "mc/deps/script_core/lifetime_registry/scripting/WeakTypedObjectHandle.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
namespace
ScriptModuleMinecraft {
class
ScriptItemStack
; }
12
namespace
ScriptModuleMinecraft {
struct
ScriptCustomComponentParameters
; }
13
namespace
Scripting {
class
WeakLifetimeScope
; }
14
// clang-format on
15
16
namespace
ScriptModuleMinecraft {
17
18
class
IScriptItemCustomComponentReader
{
19
public
:
20
// virtual functions
21
// NOLINTBEGIN
22
virtual
~IScriptItemCustomComponentReader
() =
default
;
23
24
virtual ::std::vector<::std::string_view> getValidComponentsForItem(
25
::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>
itemHandle
26
)
const
= 0;
27
28
virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters>
const
&
29
tryGetCustomComponentParametersForItem(
30
::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>
itemHandle,
31
::std::string_view componentName,
32
::Scripting::WeakLifetimeScope
const
& scope
33
)
const
= 0;
34
// NOLINTEND
35
};
36
37
}
// namespace ScriptModuleMinecraft
ScriptModuleMinecraft::IScriptItemCustomComponentReader
Definition
IScriptItemCustomComponentReader.h:18
ScriptModuleMinecraft::ScriptItemStack
Definition
ScriptItemStack.h:30
Scripting::WeakLifetimeScope
Definition
WeakLifetimeScope.h:12
Scripting::WeakTypedObjectHandle
Definition
WeakTypedObjectHandle.h:8
ScriptModuleMinecraft::ScriptCustomComponentParameters
Definition
ScriptCustomComponentParameters.h:15
src
mc
scripting
modules
minecraft
items
IScriptItemCustomComponentReader.h
Generated on
for LeviLamina by
1.16.1