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
PlayerAddExperienceEvent.h
1
#pragma once
2
3
#include "ll/api/event/Cancellable.h"
4
#include "ll/api/event/player/PlayerEvent.h"
5
6
namespace
ll::event::inline player {
7
8
class
PlayerAddExperienceEvent final :
public
Cancellable<PlayerEvent> {
9
int
& mExperience;
10
11
public
:
12
constexpr
PlayerAddExperienceEvent(
Player
& player,
int
& exp) : Cancellable(player), mExperience(exp) {}
13
14
LLAPI
void
serialize(
CompoundTag
&)
const override
;
15
LLAPI
void
deserialize(
CompoundTag
const
&)
override
;
16
17
LLNDAPI
int
& experience()
const
;
18
};
19
}
// namespace ll::event::inline player
CompoundTag
Definition
CompoundTag.h:18
Player
Definition
Player.h:131
src
ll
api
event
player
PlayerAddExperienceEvent.h
Generated on
for LeviLamina by
1.16.1