LeviLamina
Loading...
Searching...
No Matches
PlayerDieEvent.h
1
#pragma once
2
3
#include "ll/api/event/player/PlayerEvent.h"
4
5
#include "mc/world/actor/ActorDamageSource.h"
6
7
namespace
ll::event::inline player {
8
9
class
PlayerDieEvent final :
public
PlayerEvent {
10
ActorDamageSource
const
& mSource;
11
12
public
:
13
constexpr
explicit
PlayerDieEvent(
Player
& player,
ActorDamageSource
const
& source)
14
: PlayerEvent(player),
15
mSource(source) {}
16
17
LLAPI
void
serialize(
CompoundTag
&)
const override
;
18
19
LLNDAPI
ActorDamageSource
const
& source()
const
;
20
};
21
}
// namespace ll::event::inline player
ActorDamageSource
Definition
ActorDamageSource.h:18
CompoundTag
Definition
CompoundTag.h:23
Player
Definition
Player.h:125
src
ll
api
event
player
PlayerDieEvent.h
Generated on
for LeviLamina by
1.16.1