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/world/item/components/NetworkedItemComponent.h"
7#include "mc/world/level/storage/AllExperiments.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12class ItemStack;
13class Player;
15class SemVersion;
16namespace Bedrock::PubSub { class Subscription; }
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
51 _doThrow(::ItemStack& item, ::Player& player, ::ProjectileItemComponent const& projectileComponent, float power)
52 const;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static void bindType(
60 ::std::vector<::AllExperiments> const& releasedMinFormatVersion,
61 ::std::optional<::SemVersion> requiredToggles
62 );
63
64 MCAPI static ::HashedString const& getIdentifier();
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
77
78 MCAPI void $_initializeComponent();
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86};
Definition HashedString.h:5
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:6
Definition Player.h:119
Definition ProjectileItemComponent.h:24
Definition SemVersion.h:15
Definition ThrowableItemComponent.h:20
Definition ReflectionCtx.h:11
Definition ctx.h:5