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