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;
13class CompoundTag;
14class DataLoadHelper;
15class Mob;
16class Player;
17class Vec3;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, bool> mInGround;
27 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwnerId;
28 ::ll::TypedStorage<4, 4, int> mShakeTime;
29 ::ll::TypedStorage<4, 4, int> mLife;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void
36 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
37
38 virtual void lerpMotion(::Vec3 const& delta) /*override*/;
39
40 virtual float getThrowPower();
41
42 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
43
44 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
45
46 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
47
48 virtual float getThrowUpAngleOffset();
49
50 virtual float getGravity();
51
52 virtual ~Throwable() /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI void shoot(::Mob& shooter);
59
60 MCAPI void shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed);
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static ::Actor* spawnPlayerProjectile(::ActorDefinitionIdentifier const& id, ::Player& player);
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCFOLD void $dtor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
79
80 MCAPI void $lerpMotion(::Vec3 const& delta);
81
82 MCAPI float $getThrowPower();
83
84 MCAPI ::ActorUniqueID $getSourceUniqueID() const;
85
86 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
87
88 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
89
90 MCFOLD float $getThrowUpAngleOffset();
91
92 MCAPI float $getGravity();
93
94
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
Definition Actor.h:105
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition Mob.h:50
Definition Player.h:125
Definition PredictableProjectile.h:8
Definition Throwable.h:22
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:13