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
8namespace ll::event::inline player {
9
10class PlayerUseItemEvent final : public Cancellable<PlayerRightClickEvent> {
11 ItemStack& mItem;
12
13public:
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
Definition CompoundTag.h:13
Definition ItemStack.h:25
Definition Player.h:119
Definition PlayerUseItemEvent.h:10
Definition serialize.h:11