LeviLamina
Loading...
Searching...
No Matches
PlayerUseItemEvent.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/item/ItemStack.h"
7
8
namespace
ll::event::inline player {
9
10
class
PlayerUseItemEvent final :
public
Cancellable<PlayerRightClickEvent> {
11
ItemStack
& mItem;
12
13
public
:
14
constexpr
PlayerUseItemEvent(
Player
& player,
ItemStack
& item) : Cancellable(player), mItem(item) {}
15
16
LLAPI
void
serialize(
CompoundTag
&)
const override
;
17
18
LLNDAPI
ItemStack
& item()
const
;
19
};
20
}
// namespace ll::event::inline player
CompoundTag
Definition
CompoundTag.h:23
ItemStack
Definition
ItemStack.h:26
Player
Definition
Player.h:125
src
ll
api
event
player
PlayerUseItemEvent.h
Generated on
for LeviLamina by
1.16.1