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 ComponentItem;
14class HashedString;
15class ItemStack;
16class Player;
17class SemVersion;
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21class WearableItemComponent : public ::NetworkedItemComponent<::WearableItemComponent> {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::EquipmentSlot> mEquipmentSlot;
26 ::ll::TypedStorage<4, 4, int> mProtection;
27 ::ll::TypedStorage<1, 1, bool> mHidesPlayerLocation;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 7
35 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
36
37 // vIndex: 0
38 virtual ~WearableItemComponent() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void use(bool& result, ::ItemStack& instance, ::Player& player) const;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static void bindType(
52 ::std::vector<::AllExperiments> const& requiredToggles,
53 ::std::optional<::SemVersion> releasedMinFormatVersion
54 );
55
56 MCAPI static ::HashedString const& getIdentifier();
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI void $_initializeComponent(::ComponentItem& owner);
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition ComponentItem.h:53
Definition HashedString.h:5
Definition ItemStack.h:23
Definition NetworkedItemComponent.h:7
Definition Player.h:123
Definition SemVersion.h:16
Definition WearableItemComponent.h:21
static MCAPI void ** $vftable()
Definition ReflectionCtx.h:11
Definition ctx.h:5