LeviLamina
Loading...
Searching...
No Matches
ThrowableItemComponent.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/world/item/components/NetworkedItemComponent.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12class ItemStack;
13class Player;
15class SemVersion;
16// clang-format on
17
18class ThrowableItemComponent : public ::NetworkedItemComponent<::ThrowableItemComponent> {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mDoSwing;
23 ::ll::TypedStorage<4, 4, float> mMinDrawDuration;
24 ::ll::TypedStorage<4, 4, float> mDrawDuration;
25 ::ll::TypedStorage<4, 4, float> mLaunchPowerScale;
26 ::ll::TypedStorage<4, 4, float> mMaxLaunchPower;
27 ::ll::TypedStorage<1, 1, bool> mScalePowerByDrawDuration;
28 ::ll::TypedStorage<1, 1, bool> mTriggerActorUseItemEvent;
29 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 6
36 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion) /*override*/;
37
38 // vIndex: 7
39 virtual void _initializeComponent() /*override*/;
40
41 // vIndex: 0
42 virtual ~ThrowableItemComponent() /*override*/ = default;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI void _doThrow(
49 ::ItemStack& item,
50 ::Player& player,
51 ::ProjectileItemComponent const& projectileComponent,
52 float power
53 ) const;
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static ::HashedString const& getIdentifier();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
66
67 MCAPI void $_initializeComponent();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition HashedString.h:5
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:7
Definition Player.h:119
Definition ProjectileItemComponent.h:22
Definition SemVersion.h:15
Definition ThrowableItemComponent.h:18
static MCAPI void ** $vftable()