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