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 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI FireworksRocketActor(
56 ::ActorDefinitionGroup* definitions,
57 ::ActorDefinitionIdentifier const& definitionName,
58 ::EntityContext& entityContext
59 );
60
61 MCAPI void init(
62 ::Level& level,
63 ::Vec3 const&,
64 ::CompoundTag const& rocketUserData,
65 ::Vec3 const& dir,
66 ::ActorUniqueID attachedEntity,
67 bool isProjectile
68 );
69
70 MCAPI void initTagData(::Random& random);
71
72 MCAPI void postNormalTick();
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void initData(
80 ::CompoundTag const& rocketUserData,
81 ::Vec3 const& dir,
82 ::ActorUniqueID attachedEntity
83 );
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(
90 ::ActorDefinitionGroup* definitions,
91 ::ActorDefinitionIdentifier const& definitionName,
92 ::EntityContext& entityContext
93 );
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCFOLD float $getShadowRadius() const;
100
101 MCAPI void $lerpMotion(::Vec3 const& delta);
102
103 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
104
105 MCAPI void $onSynchedDataUpdate(int dataId);
106
107 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
108
109 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
110
111
112 // NOLINTEND
113};
Definition ActorDefinitionGroup.h:26
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition EntityContext.h:15
Definition Level.h:254
Definition PredictableProjectile.h:8
Definition Random.h:10
Definition SynchedActorDataEntityWrapper.h:21
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:5