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 checkAchievement() const;
62
63 MCAPI void dealExplosionDamage();
64
65 MCAPI int getLifeTime() const;
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 bool isAttachedToEntity() const;
79
80 MCAPI void postNormalTick();
81
82 MCFOLD void setDispensed(bool dispensed);
83 // NOLINTEND
84
85public:
86 // static functions
87 // NOLINTBEGIN
88 MCAPI static void defineData(::SynchedActorDataEntityWrapper& data);
89
90 MCAPI static void initData(
92 ::CompoundTag const& rocketUserData,
93 ::Vec3 const& dir,
94 ::ActorUniqueID attachedEntity
95 );
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor(
102 ::ActorDefinitionGroup* definitions,
103 ::ActorDefinitionIdentifier const& definitionName,
104 ::EntityContext& entityContext
105 );
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCFOLD float $getShadowRadius() const;
112
113 MCAPI void $lerpMotion(::Vec3 const& delta);
114
115 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
116
117 MCAPI void $onSynchedDataUpdate(int dataId);
118
119 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
120
121 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
122
123
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCAPI static void** $vftable();
130 // NOLINTEND
131};
Definition ActorDefinitionGroup.h:37
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:17
Definition Level.h:255
Definition Random.h:10
Definition SynchedActorDataEntityWrapper.h:24
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:10