LeviLamina
Loading...
Searching...
No Matches
PlayerItemInUse.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/player/PlayerInventorySlotData.h"
7#include "mc/world/item/ItemStack.h"
8
9// auto generated forward declare list
10// clang-format off
11class EntityContext;
12class Player;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<1, 1, bool> mShouldEmitGameEvents;
20 ::ll::TypedStorage<8, 152, ::ItemStack> mItem;
21 ::ll::TypedStorage<4, 8, ::PlayerInventorySlotData> mSlot;
22 // NOLINTEND
23
24public:
25 // member functions
26 // NOLINTBEGIN
27#ifdef LL_PLAT_S
28 MCAPI void clearItemInUse(::EntityContext& owner);
29
30 MCAPI int getDuration(::EntityContext const& owner) const;
31#endif
32
33 MCAPI int getUsedDuration(::EntityContext const& owner) const;
34
35#ifdef LL_PLAT_S
36 MCAPI void releaseUsing(::Player& player);
37
38 MCAPI void
39 setItemInUse(::ItemStack const& newItem, ::EntityContext& owner, int duration, ::PlayerInventorySlotData slot);
40
41 MCAPI bool shouldDisplayUseParticles(::EntityContext const& owner);
42
43 MCAPI void updateItemInUse(::ItemStack const& updatedItem);
44#endif
45 // NOLINTEND
46};
Definition EntityContext.h:15
Definition ItemStack.h:24
Definition PlayerItemInUse.h:15
Definition Player.h:129
Definition PlayerInventorySlotData.h:8