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
IPacketObserver.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
NetworkIdentifier
;
11
class
Packet
;
12
// clang-format on
13
14
class
IPacketObserver
:
public
::Bedrock::EnableNonOwnerReferences
{
15
public
:
16
// virtual functions
17
// NOLINTBEGIN
18
virtual
void
packetSentTo(
::NetworkIdentifier
const
& target,
::Packet
const
& packet, uint size) = 0;
19
20
virtual
void
packetReceivedFrom(
::NetworkIdentifier
const
& source,
::Packet
const
& packet, uint size) = 0;
21
22
virtual
void
dataSentTo(
::NetworkIdentifier
const
& target, ::std::string_view data) = 0;
23
24
virtual
void
dataReceivedFrom(
::NetworkIdentifier
const
& source, ::std::string
const
& data) = 0;
25
26
virtual
void
onObserveeDestroyed();
27
// NOLINTEND
28
29
public
:
30
// virtual function thunks
31
// NOLINTBEGIN
32
MCNAPI
void
$onObserveeDestroyed
();
33
34
35
// NOLINTEND
36
};
Bedrock::EnableNonOwnerReferences
Definition
EnableNonOwnerReferences.h:7
IPacketObserver
Definition
IPacketObserver.h:14
IPacketObserver::$onObserveeDestroyed
MCAPI void $onObserveeDestroyed()
NetworkIdentifier
Definition
NetworkIdentifier.h:10
Packet
Definition
Packet.h:29
src
mc
network
IPacketObserver.h
Generated on
for LeviLamina by
1.16.1