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<1, 1, bool> mHidesPlayerLocation;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 7
34 virtual void _initializeComponent() /*override*/;
35
36 // vIndex: 0
37 virtual ~WearableItemComponent() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI void use(bool& result, ::ItemStack& instance, ::Player& player) const;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static void bindType(
51 ::std::vector<::AllExperiments> const& requiredToggles,
52 ::std::optional<::SemVersion> releasedMinFormatVersion
53 );
54
55 MCAPI static ::HashedString const& getIdentifier();
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI void $_initializeComponent();
62 // NOLINTEND
63
64public:
65 // vftables
66 // NOLINTBEGIN
67 MCNAPI static void** $vftable();
68 // NOLINTEND
69};
Definition HashedString.h:5
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:7
Definition Player.h:120
Definition SemVersion.h:16
Definition WearableItemComponent.h:20
static MCAPI void ** $vftable()
Definition ReflectionCtx.h:11
Definition ctx.h:5