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
24class Throwable : public ::PredictableProjectile {
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 virtual void
42 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
43
44 virtual void lerpMotion(::Vec3 const& delta) /*override*/;
45
46 virtual float getThrowPower();
47
48 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
49
50 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
51
52 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
53
54 virtual float getThrowUpAngleOffset();
55
56 virtual float getGravity();
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI Throwable(
63 ::ActorDefinitionGroup* definitions,
64 ::ActorDefinitionIdentifier const& definitionName,
65 ::EntityContext& entityContext
66 );
67
68 MCAPI void shoot(::Mob& shooter);
69
70 MCAPI void shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed);
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static ::Actor* spawnPlayerProjectile(::ActorDefinitionIdentifier const& id, ::Player& player);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(
83 ::ActorDefinitionGroup* definitions,
84 ::ActorDefinitionIdentifier const& definitionName,
85 ::EntityContext& entityContext
86 );
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
93
94 MCAPI void $lerpMotion(::Vec3 const& delta);
95
96 MCAPI float $getThrowPower();
97
98 MCAPI ::ActorUniqueID $getSourceUniqueID() const;
99
100 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
101
102 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
103
104 MCFOLD float $getThrowUpAngleOffset();
105
106 MCAPI float $getGravity();
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition ActorDefinitionGroup.h:37
Definition Actor.h:125
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:17
Definition Mob.h:57
Definition Player.h:137
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:14