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
OnUse.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/utility/pub_sub/Publisher.h"
7
#include "mc/world/item/HandSlot.h"
8
#include "mc/world/item/components/ItemComponent.h"
9
10
// auto generated forward declare list
11
// clang-format off
12
class
ItemStack
;
13
class
Player
;
14
struct
ItemOnUseResult
;
15
namespace
Bedrock::PubSub::ThreadModel {
struct
SingleThreaded
; }
16
// clang-format on
17
18
namespace
PublisherItemComponent {
19
20
struct
OnUse
:
public
::ItemComponent
,
21
public
::Bedrock::PubSub::Publisher
<
22
void(::ItemOnUseResult&, ::ItemStack&, ::Player&, ::HandSlot),
23
::Bedrock::PubSub::ThreadModel::SingleThreaded,
24
0> {};
25
26
}
// namespace PublisherItemComponent
Bedrock::PubSub::Publisher
Definition
Publisher.h:25
ItemComponent
Definition
ItemComponent.h:16
ItemStack
Definition
ItemStack.h:26
Player
Definition
Player.h:131
Bedrock::PubSub::ThreadModel::SingleThreaded
Definition
SingleThreaded.h:7
ItemOnUseResult
Definition
ItemOnUseResult.h:5
PublisherItemComponent::OnUse
Definition
OnUse.h:24
src
mc
world
item
components
publisher_item_component
OnUse.h
Generated on
for LeviLamina by
1.16.1