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
OnUseOn.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
Actor
;
13
class
BlockPos
;
14
class
CompoundTag
;
15
class
ItemStack
;
16
class
Vec3
;
17
namespace
Bedrock::PubSub::ThreadModel {
struct
SingleThreaded
; }
18
namespace
cereal {
struct
ReflectionCtx
; }
19
// clang-format on
20
21
namespace
PublisherItemComponent {
22
23
struct
OnUseOn
24
:
public
::ItemComponent
,
25
public
::Bedrock::PubSub::Publisher
<
26
void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&, ::HandSlot),
27
::Bedrock::PubSub::ThreadModel::SingleThreaded,
28
0> {
29
public
:
30
// member variables
31
// NOLINTBEGIN
32
::ll::TypedStorage<1, 1, bool> mAutoSucceedOnClient;
33
// NOLINTEND
34
35
public
:
36
// virtual functions
37
// NOLINTBEGIN
38
virtual
bool
isNetworkComponent()
const
/*override*/
;
39
40
virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
/*override*/
;
41
42
virtual
bool
initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
)
/*override*/
;
43
// NOLINTEND
44
45
public
:
46
// virtual function thunks
47
// NOLINTBEGIN
48
MCNAPI
bool
$isNetworkComponent
()
const
;
49
50
MCNAPI ::std::unique_ptr<::CompoundTag>
$buildNetworkTag
(
::cereal::ReflectionCtx
const
&
ctx
)
const
;
51
52
MCNAPI
bool
$initializeFromNetwork
(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
);
53
54
55
// NOLINTEND
56
};
57
58
}
// namespace PublisherItemComponent
Actor
Definition
Actor.h:116
Bedrock::PubSub::Publisher
Definition
Publisher.h:25
BlockPos
Definition
BlockPos.h:14
CompoundTag
Definition
CompoundTag.h:18
ItemComponent
Definition
ItemComponent.h:16
ItemStack
Definition
ItemStack.h:26
Vec3
Definition
Vec3.h:10
Bedrock::PubSub::ThreadModel::SingleThreaded
Definition
SingleThreaded.h:7
PublisherItemComponent::OnUseOn
Definition
OnUseOn.h:28
PublisherItemComponent::OnUseOn::$isNetworkComponent
MCAPI bool $isNetworkComponent() const
PublisherItemComponent::OnUseOn::$buildNetworkTag
MCAPI ::std::unique_ptr<::CompoundTag > $buildNetworkTag(::cereal::ReflectionCtx const &ctx) const
PublisherItemComponent::OnUseOn::$initializeFromNetwork
MCAPI bool $initializeFromNetwork(::CompoundTag const &tag, ::cereal::ReflectionCtx const &ctx)
cereal::ReflectionCtx
Definition
ReflectionCtx.h:11
ctx
Definition
ctx.h:5
src
mc
world
item
components
publisher_item_component
OnUseOn.h
Generated on
for LeviLamina by
1.16.1