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
BlockPos
Definition
BlockPos.h:19
CompoundTag
Definition
CompoundTag.h:23
Player
Definition
Player.h:125
src
ll
api
event
player
PlayerDestroyBlockEvent.h
Generated on
for LeviLamina by
1.16.1