Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI ::UpdateEquipPacket createDataPacket(::Actor& owner, ::ContainerID containerID) const;
34
35 MCNAPI ::std::unique_ptr<::CompoundTag> createTag(::Actor& owner) const;
36
37 MCNAPI bool onItemChanged(::Actor& owner, uint64 slotIdx, ::ItemStack const& item) const;
38
39 MCNAPI ::EquippableComponent& operator=(::EquippableComponent&& other);
40
41#ifdef LL_PLAT_C
42 MCNAPI void setDataFromPacket(::UpdateEquipPacket const& packet);
43#endif
44 // NOLINTEND
45};
Definition Actor.h:116
Definition CompoundTag.h:18
MCAPI ::std::unique_ptr<::CompoundTag > createTag(::Actor &owner) const
MCAPI::EquippableComponent & operator=(::EquippableComponent &&other)
MCAPI::UpdateEquipPacket createDataPacket(::Actor &owner, ::ContainerID containerID) const
MCAPI bool onItemChanged(::Actor &owner, uint64 slotIdx, ::ItemStack const &item) const
Definition ItemStack.h:26
Definition UpdateEquipPacket.h:19
Definition SlotDescriptor.h:9