LeviLamina
Loading...
Searching...
No Matches
FireworksRocketActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorEvent.h"
7#include "mc/world/actor/projectile/PredictableProjectile.h"
8
9// auto generated forward declare list
10// clang-format off
12class CompoundTag;
13class DataLoadHelper;
14class EntityContext;
15class Level;
16class Random;
18class Vec3;
20struct ActorUniqueID;
21// clang-format on
22
23class FireworksRocketActor : public ::PredictableProjectile {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, int> mLife;
28 ::ll::TypedStorage<4, 4, int> mLifeTime;
29 ::ll::TypedStorage<1, 1, bool> mDispensed;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 FireworksRocketActor();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual float getShadowRadius() const /*override*/;
40
41 virtual void lerpMotion(::Vec3 const& delta) /*override*/;
42
43 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
44
45 virtual void onSynchedDataUpdate(int dataId) /*override*/;
46
47 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
48
49 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
50
51 virtual ~FireworksRocketActor() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI FireworksRocketActor(
58 ::ActorDefinitionGroup* definitions,
59 ::ActorDefinitionIdentifier const& definitionName,
60 ::EntityContext& entityContext
61 );
62
63 MCAPI void checkAchievement() const;
64
65 MCAPI void dealExplosionDamage();
66
67 MCAPI void init(
68 ::Level& level,
69 ::Vec3 const&,
70 ::CompoundTag const& rocketUserData,
71 ::Vec3 const& dir,
72 ::ActorUniqueID attachedEntity,
73 bool isProjectile
74 );
75
76 MCAPI void initTagData(::Random& random);
77
78 MCAPI void postNormalTick();
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCAPI static void initData(
86 ::CompoundTag const& rocketUserData,
87 ::Vec3 const& dir,
88 ::ActorUniqueID attachedEntity
89 );
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCAPI void* $ctor(
96 ::ActorDefinitionGroup* definitions,
97 ::ActorDefinitionIdentifier const& definitionName,
98 ::EntityContext& entityContext
99 );
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCFOLD float $getShadowRadius() const;
106
107 MCAPI void $lerpMotion(::Vec3 const& delta);
108
109 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
110
111 MCAPI void $onSynchedDataUpdate(int dataId);
112
113 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
114
115 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition ActorDefinitionGroup.h:35
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition Level.h:249
Definition PredictableProjectile.h:8
Definition Random.h:10
Definition SynchedActorDataEntityWrapper.h:18
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:5