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