LeviLamina
Loading...
Searching...
No Matches
LevelListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/comprehensive/ParticleType.h"
7#include "mc/deps/shared_types/legacy/LevelEvent.h"
8#include "mc/world/level/BlockSourceListener.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class ChunkSource;
16class CompoundTag;
17class HashedString;
18class LevelChunk;
20class Vec3;
24namespace cg { class ImageBuffer; }
25namespace mce { class Color; }
26// clang-format on
27
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~LevelListener() /*override*/ = default;
33
34 virtual void allChanged();
35
36 virtual void sendServerLegacyParticle(::ParticleType, ::Vec3 const&, ::Vec3 const&, int);
37
38 virtual void addParticleEffect(
39 ::HashedString const&,
40 ::Actor const&,
41 ::HashedString const&,
42 ::Vec3 const&,
44 );
45
46#ifdef LL_PLAT_S
47 virtual void addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
48#else // LL_PLAT_C
49 virtual void addTerrainParticleEffect(
50 ::BlockPos const& pos,
51 ::Block const& block,
52 ::Vec3 const& emitterPosition,
53 float particleCount,
54 float velocityScalar,
55 float emitterRadius
56 );
57#endif
58
59#ifdef LL_PLAT_S
60 virtual void addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
61#else // LL_PLAT_C
62 virtual void addTerrainSlideEffect(
63 ::BlockPos const& pos,
64 ::Block const& block,
65 ::Vec3 const& emitterPosition,
66 float particleCount,
67 float velocityScalar,
68 float emitterRadius
69 );
70#endif
71
72#ifdef LL_PLAT_S
73 virtual void
74 addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
75#else // LL_PLAT_C
76 virtual void addBreakingItemParticleEffect(
77 ::Vec3 const& pos,
79 ::ResolvedItemIconInfo const& textureInfo
80 );
81#endif
82
83#ifdef LL_PLAT_S
84 virtual void addBiomeTintedParticleEffect(
85 ::HashedString const&,
86 ::BlockPos const&,
87 ::Block const&,
88 ::std::optional<::mce::Color>
89 );
90#else // LL_PLAT_C
91 virtual void addBiomeTintedParticleEffect(
92 ::HashedString const& effect,
93 ::BlockPos const& pos,
94 ::Block const& block,
95 ::std::optional<::mce::Color> overrideColor
96 );
97#endif
98
99 virtual void playMusic(::std::string const&, ::Vec3 const&, float, float);
100
101 virtual void playStreamingMusic(::std::string const&, int, int, int);
102
103 virtual void onEntityAdded(::Actor&);
104
105#ifdef LL_PLAT_S
106 virtual void onEntityRemoved(::Actor&);
107#else // LL_PLAT_C
108 virtual void onEntityRemoved(::Actor& entity);
109#endif
110
111 virtual void onChunkLoaded(::ChunkSource& source, ::LevelChunk& lc);
112
113 virtual void onChunkReloaded(::ChunkSource&, ::LevelChunk&);
114
115 virtual void onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
116
117 virtual void onChunkUnloaded(::LevelChunk& lc);
118
119#ifdef LL_PLAT_S
120 virtual void onLevelDestruction(::std::string const&);
121#else // LL_PLAT_C
122 virtual void onLevelDestruction(::std::string const& levelId);
123#endif
124
125#ifdef LL_PLAT_S
126 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int);
127#else // LL_PLAT_C
128 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent type, ::Vec3 const& pos, int data);
129#endif
130
131#ifdef LL_PLAT_S
132 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&);
133#else // LL_PLAT_C
134 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent type, ::CompoundTag const& data);
135#endif
136
137#ifdef LL_PLAT_S
138 virtual void takePicture(
140 ::Actor*,
141 ::Actor*,
143 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
144 );
145#else // LL_PLAT_C
146 virtual void takePicture(
147 ::cg::ImageBuffer& outImage,
148 ::Actor* camera,
149 ::Actor* target,
150 ::ScreenshotOptions& screenshotOptions,
151 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)> completedScreenshotCallback
152 );
153#endif
154
155 virtual void playerListChanged();
156
157#ifdef LL_PLAT_S
158 virtual void onLevelDataCommandsChanged(bool);
159#else // LL_PLAT_C
160 virtual void onLevelDataCommandsChanged(bool commandsEnabeld);
161#endif
162
163 virtual void onLevelDataWorldTemplateOptionsUnlocked();
164 // NOLINTEND
165
166public:
167 // virtual function thunks
168 // NOLINTBEGIN
169 MCFOLD void $allChanged();
170
171 MCFOLD void $sendServerLegacyParticle(::ParticleType, ::Vec3 const&, ::Vec3 const&, int);
172
173 MCFOLD void $addParticleEffect(
174 ::HashedString const&,
175 ::Actor const&,
176 ::HashedString const&,
177 ::Vec3 const&,
179 );
180
181 MCFOLD void $addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
182
183 MCFOLD void $addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
184
185 MCFOLD void
186 $addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
187
188 MCFOLD void $addBiomeTintedParticleEffect(
189 ::HashedString const&,
190 ::BlockPos const&,
191 ::Block const&,
192 ::std::optional<::mce::Color>
193 );
194
195 MCFOLD void $playMusic(::std::string const&, ::Vec3 const&, float, float);
196
197 MCFOLD void $playStreamingMusic(::std::string const&, int, int, int);
198
199 MCFOLD void $onEntityAdded(::Actor&);
200
201 MCFOLD void $onEntityRemoved(::Actor&);
202
203 MCFOLD void $onChunkLoaded(::ChunkSource& source, ::LevelChunk& lc);
204
205 MCFOLD void $onChunkReloaded(::ChunkSource&, ::LevelChunk&);
206
207 MCFOLD void $onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
208
209 MCFOLD void $onChunkUnloaded(::LevelChunk& lc);
210
211 MCFOLD void $onLevelDestruction(::std::string const&);
212
213 MCFOLD void $levelEvent(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int);
214
215 MCFOLD void $levelEvent(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&);
216
217 MCAPI void $takePicture(
219 ::Actor*,
220 ::Actor*,
222 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
223 );
224
225 MCFOLD void $playerListChanged();
226
227 MCFOLD void $onLevelDataCommandsChanged(bool);
228
229 MCFOLD void $onLevelDataWorldTemplateOptionsUnlocked();
230
231
232 // NOLINTEND
233
234public:
235 // vftables
236 // NOLINTBEGIN
237 MCAPI static void** $vftable();
238 // NOLINTEND
239};
Definition Actor.h:123
Definition BlockPos.h:21
Definition BlockSourceListener.h:18
Definition Block.h:69
Definition ChunkSource.h:37
Definition CompoundTag.h:23
Definition HashedString.h:5
Definition LevelChunk.h:87
Definition LevelListener.h:28
Definition MolangVariableMap.h:18
Definition Vec3.h:10
Definition ImageBuffer.h:16
Definition Color.h:13
Definition BreakingItemParticleData.h:8
Definition ResolvedItemIconInfo.h:8
Definition ScreenshotOptions.h:9