LeviLamina
Loading...
Searching...
No Matches
PlayerDestroyBlockEvent.h
1#pragma once
2
3#include "ll/api/event/Cancellable.h"
4#include "ll/api/event/player/PlayerClickEvent.h"
5
6#include "mc/world/actor/player/Player.h"
7#include "mc/world/level/BlockPos.h"
8
9namespace ll::event::inline player {
10
11class PlayerDestroyBlockEvent final : public Cancellable<PlayerLeftClickEvent> {
12 BlockPos const& mPos;
13
14public:
15 constexpr PlayerDestroyBlockEvent(Player& player, BlockPos const& pos) : Cancellable(player), mPos(pos) {}
16
17 LLAPI void serialize(CompoundTag&) const override;
18
19 LLNDAPI BlockPos const& pos() const;
20};
21} // namespace ll::event::inline player
Definition BlockPos.h:17
Definition CompoundTag.h:13
Definition Player.h:123
Definition PlayerDestroyBlockEvent.h:11
Definition serialize.h:11