LeviLamina
Loading...
Searching...
No Matches
PiercingWeaponItemComponent.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/deps/shared_types/shared_types/FloatRange.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 HashedString;
15class ItemStack;
16class Player;
17class SemVersion;
18class Vec3;
19namespace cereal { struct ReflectionCtx; }
20// clang-format on
21
22class PiercingWeaponItemComponent : public ::NetworkedItemComponent<::PiercingWeaponItemComponent> {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 8, ::SharedTypes::FloatRange> mReach;
27 ::ll::TypedStorage<4, 12, ::std::optional<::SharedTypes::FloatRange>> mCreativeReach;
28 ::ll::TypedStorage<4, 4, float> mHitboxMargin;
29 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseAsAttackSubscription;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
36
37 virtual ~PiercingWeaponItemComponent() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI void _onUseAsAttack(::ItemStack& item, ::Player& player, ::Vec3 const& aimDirection) const;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static void bindType(
51 ::std::vector<::AllExperiments> const& requiredToggles,
52 ::std::optional<::SemVersion> releasedMinFormatVersion
53 );
54
55 MCAPI static ::HashedString const& getIdentifier();
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI void $_initializeComponent(::ComponentItem& owner);
62
63
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:26
Definition NetworkedItemComponent.h:7
Definition PiercingWeaponItemComponent.h:22
static MCAPI void ** $vftable()
Definition Player.h:125
Definition SemVersion.h:15
Definition Vec3.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5