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
9
namespace
ll::event::inline player {
10
11
class
PlayerDestroyBlockEvent
final :
public
Cancellable<PlayerLeftClickEvent> {
12
BlockPos
const
& mPos;
13
14
public
:
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
player::PlayerDestroyBlockEvent
Definition
PlayerDestroyBlockEvent.h:11
src
ll
api
event
player
PlayerDestroyBlockEvent.h
Generated on Tue Dec 23 2025 09:16:15 for LeviLamina by
1.12.0