LeviLamina
Loading...
Searching...
No Matches
EquippableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class CompoundTag;
9class ItemStack;
11struct SlotDescriptor;
12// clang-format on
13
14class EquippableComponent {
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 24, ::std::vector<::SlotDescriptor>> mSlots;
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 EquippableComponent& operator=(EquippableComponent const&);
24 EquippableComponent(EquippableComponent const&);
25 EquippableComponent();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI ::std::unique_ptr<::CompoundTag> createTag(::Actor& owner) const;
31
32 MCAPI bool onItemChanged(::Actor& owner, uint64 slotIdx, ::ItemStack const& item) const;
33
34 MCAPI ::EquippableComponent& operator=(::EquippableComponent&& other);
35
36#ifdef LL_PLAT_C
37 MCAPI void setDataFromPacket(::UpdateEquipPacket const& packet);
38#endif
39 // NOLINTEND
40};
Definition Actor.h:106
Definition CompoundTag.h:23
Definition ItemStack.h:26
Definition UpdateEquipPacket.h:19
Definition SlotDescriptor.h:9