Skip to content
LeviMC
English
AutoLightDark
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/sound/SoundEventIdentifier.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 SemVersion;
15namespace SharedTypes::v1_26_50 { struct UseModifiersItemComponent; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class UseModifiersItemComponent : public ::NetworkedItemComponent<::UseModifiersItemComponent> {
20public:
21 // UseModifiersItemComponent inner types define
22 enum class StartUsing : uchar {
23 IfFirst = 0,
24 Always = 1,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, float> mUseDuration;
31 ::ll::TypedStorage<1, 1, bool> mEmitVibrations;
32 ::ll::TypedStorage<8, 48, ::std::optional<::SoundEventIdentifier>> mStartSound;
33 ::ll::TypedStorage<4, 8, ::std::optional<float>> mMovementModifier;
34 ::ll::TypedStorage<1, 1, ::UseModifiersItemComponent::StartUsing> mStartUsing;
35 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 UseModifiersItemComponent();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCNAPI static void bindType(
59 ::std::vector<::AllExperiments> const& requiredToggles,
60 ::std::optional<::SemVersion> releasedMinFormatVersion
61 );
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
Definition ComponentItem.h:52
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:15
static MCAPI void bindType(::cereal::ReflectionCtx &ctx, ::std::vector<::AllExperiments > const &requiredToggles, ::std::optional<::SemVersion > releasedMinFormatVersion)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::SharedTypes::v1_26_50::UseModifiersItemComponent component)
MCAPI UseModifiersItemComponent(::SharedTypes::v1_26_50::UseModifiersItemComponent component)
MCAPI void $_initializeComponent(::ComponentItem &owner)
Definition UseModifiersItemComponent.h:17
Definition ReflectionCtx.h:11
Definition ctx.h:5