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
6namespace ll::event::inline player {
7
8class PlayerJumpEvent final : public PlayerEvent {
9 Vec3 const mFromPosition;
10 Vec3 const mToPosition;
11
12public:
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
Definition CompoundTag.h:23
Definition Player.h:125
Definition Vec3.h:10