LeviLamina
Loading...
Searching...
No Matches
PlayerJumpEvent.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
PlayerJumpEvent final :
public
PlayerEvent {
9
Vec3
const
mFromPosition;
10
Vec3
const
mToPosition;
11
12
public
:
13
constexpr
explicit
PlayerJumpEvent(
Player
& player,
Vec3
const
& fromPos,
Vec3
const
& toPos)
14
: PlayerEvent(player),
15
mFromPosition(fromPos),
16
mToPosition(toPos) {}
17
18
LLAPI
void
serialize(
CompoundTag
& nbt)
const override
;
19
20
LLNDAPI
Vec3
const
& fromPosition();
21
LLNDAPI
Vec3
const
& toPosition();
22
};
23
24
}
// namespace ll::event::inline player
CompoundTag
Definition
CompoundTag.h:23
Player
Definition
Player.h:125
Vec3
Definition
Vec3.h:10
src
ll
api
event
player
PlayerJumpEvent.h
Generated on
for LeviLamina by
1.16.1