LeviLamina
Loading...
Searching...
No Matches
Throwable.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/actor/ActorInitializationMethod.h"
8#include "mc/world/actor/projectile/PredictableProjectile.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
14class CompoundTag;
15class DataLoadHelper;
16class EntityContext;
17class Mob;
18class Player;
19class Vec3;
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 1, bool> mInGround;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwnerId;
30 ::ll::TypedStorage<4, 4, int> mShakeTime;
31 ::ll::TypedStorage<4, 4, int> mLife;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 Throwable();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 4
42 virtual void
43 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
44
45 // vIndex: 22
46 virtual void lerpMotion(::Vec3 const& delta) /*override*/;
47
48 // vIndex: 138
49 virtual float getThrowPower();
50
51 // vIndex: 84
52 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
53
54 // vIndex: 137
55 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
56
57 // vIndex: 136
58 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
59
60 // vIndex: 139
61 virtual float getThrowUpAngleOffset();
62
63 // vIndex: 140
64 virtual float getGravity();
65
66 // vIndex: 8
67 virtual ~Throwable() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI Throwable(
74 ::ActorDefinitionGroup* definitions,
75 ::ActorDefinitionIdentifier const& definitionName,
76 ::EntityContext& entityContext
77 );
78
79 MCAPI void shoot(::Mob& shooter);
80
81 MCAPI void shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed);
82 // NOLINTEND
83
84public:
85 // static functions
86 // NOLINTBEGIN
87 MCAPI static ::Actor* spawnPlayerProjectile(::ActorDefinitionIdentifier const& id, ::Player& player);
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor(
94 ::ActorDefinitionGroup* definitions,
95 ::ActorDefinitionIdentifier const& definitionName,
96 ::EntityContext& entityContext
97 );
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCFOLD void $dtor();
104 // NOLINTEND
105
106public:
107 // virtual function thunks
108 // NOLINTBEGIN
109 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
110
111 MCAPI void $lerpMotion(::Vec3 const& delta);
112
113 MCAPI float $getThrowPower();
114
115 MCAPI ::ActorUniqueID $getSourceUniqueID() const;
116
117 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
118
119 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
120
121 MCFOLD float $getThrowUpAngleOffset();
122
123 MCAPI float $getGravity();
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
Definition ActorDefinitionGroup.h:29
Definition Actor.h:103
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition Mob.h:47
Definition Player.h:119
Definition PredictableProjectile.h:8
Definition Throwable.h:24
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:5