LeviLamina
Loading...
Searching...
No Matches
ProjectileItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorDefinitionIdentifier.h"
7#include "mc/world/actor/ActorType.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 Actor;
14class BlockSource;
15class Container;
16class HashedString;
17class Player;
18class SemVersion;
19class Vec3;
21namespace SharedTypes::v1_20_50 { struct ProjectileItemComponent; }
22namespace cereal { struct ReflectionCtx; }
23// clang-format on
24
25class ProjectileItemComponent : public ::NetworkedItemComponent<::ProjectileItemComponent> {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, float> mMinCriticalPower;
30 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mActorIdentifier;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 0
42 virtual ~ProjectileItemComponent() /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
49
51
52 MCAPI ProjectileItemComponent(::ActorType actorType, float minCriticalPower);
53
54 MCAPI bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
55
56 MCAPI ::Vec3 getShootDir(::Player const& player, float angleOffset) const;
57
58 MCAPI ::Actor* shootProjectile(
59 ::BlockSource& region,
60 ::Vec3 const& aimPos,
61 ::Vec3 const& aimDir,
62 float power,
63 ::Player* player
64 ) const;
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCAPI static void bindType(
72 ::std::vector<::AllExperiments> const& requiredToggles,
73 ::std::optional<::SemVersion> releasedMinFormatVersion
74 );
75
76 MCAPI static ::HashedString const& getIdentifier();
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(::ProjectileItemComponent const&);
83
84 MCAPI void* $ctor(::SharedTypes::v1_20_50::ProjectileItemComponent component);
85
86 MCAPI void* $ctor(::ActorType actorType, float minCriticalPower);
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition Actor.h:102
Definition BlockSource.h:66
Definition Container.h:31
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition Player.h:123
Definition ProjectileItemComponent.h:25
static MCAPI void ** $vftable()
Definition SemVersion.h:16
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ProjectileItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5