LeviLamina
Loading...
Searching...
No Matches
WearableItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/deps/shared_types/legacy/item/EquipmentSlot.h"
8#include "mc/world/item/components/NetworkedItemComponent.h"
9#include "mc/world/level/storage/AllExperiments.h"
10
11// auto generated forward declare list
12// clang-format off
13class HashedString;
14class ItemStack;
15class Player;
16class SemVersion;
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
20class WearableItemComponent : public ::NetworkedItemComponent<::WearableItemComponent> {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::EquipmentSlot> mEquipmentSlot;
25 ::ll::TypedStorage<4, 4, int> mProtection;
26 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 7
33 virtual void _initializeComponent() /*override*/;
34
35 // vIndex: 0
36 virtual ~WearableItemComponent() /*override*/ = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI void use(bool& result, ::ItemStack& instance, ::Player& player) const;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static void bindType(
50 ::std::vector<::AllExperiments> const& requiredToggles,
51 ::std::optional<::SemVersion> releasedMinFormatVersion
52 );
53
54 MCAPI static ::HashedString const& getIdentifier();
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $_initializeComponent();
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
Definition HashedString.h:5
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:7
Definition Player.h:119
Definition SemVersion.h:15
Definition WearableItemComponent.h:20
static MCAPI void ** $vftable()
Definition ReflectionCtx.h:11
Definition ctx.h:5