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
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~ProjectileItemComponent() /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
48
49 MCAPI ProjectileItemComponent(::ActorType actorType, float minCriticalPower);
50
51 MCAPI bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
52
53 MCAPI ::Vec3 getShootDir(::Player const& player, float angleOffset) const;
54
55 MCAPI ::Actor* shootProjectile(
56 ::BlockSource& region,
57 ::Vec3 const& aimPos,
58 ::Vec3 const& aimDir,
59 float power,
60 ::Player* player
61 ) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static void bindType(
69 ::std::vector<::AllExperiments> const& requiredToggles,
70 ::std::optional<::SemVersion> releasedMinFormatVersion
71 );
72
73 MCAPI static ::HashedString const& getIdentifier();
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::SharedTypes::v1_20_50::ProjectileItemComponent component);
80
81 MCAPI void* $ctor(::ActorType actorType, float minCriticalPower);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition Actor.h:103
Definition BlockSource.h:67
Definition Container.h:30
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition Player.h:120
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