LeviLamina
Loading...
Searching...
No Matches
UseModifiersItemComponent.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/LevelSoundEvent.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 SemVersion;
16namespace SharedTypes::v1_20_50 { struct UseModifiersItemComponent; }
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
20class UseModifiersItemComponent : public ::NetworkedItemComponent<::UseModifiersItemComponent> {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 4, float> mUseDuration;
25 ::ll::TypedStorage<1, 1, bool> mEmitVibrations;
26 ::ll::TypedStorage<4, 8, ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>> mStartSound;
27 ::ll::TypedStorage<4, 8, ::std::optional<float>> mMovementModifier;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 UseModifiersItemComponent();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI explicit UseModifiersItemComponent(::SharedTypes::v1_20_50::UseModifiersItemComponent component);
45
46 MCFOLD bool getEmitVibrations() const;
47
48 MCAPI float getMovementModifier() const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void bindType(
56 ::std::vector<::AllExperiments> const& requiredToggles,
57 ::std::optional<::SemVersion> releasedMinFormatVersion
58 );
59
60 MCAPI static ::HashedString const& getIdentifier();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(::SharedTypes::v1_20_50::UseModifiersItemComponent component);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $_initializeComponent(::ComponentItem& owner);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
static MCAPI void ** $vftable()
Definition UseModifiersItemComponent.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5