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*/;
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 virtual void addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
47
48 virtual void addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
49
50 virtual void
51 addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
52
53 virtual void addBiomeTintedParticleEffect(
54 ::HashedString const&,
55 ::BlockPos const&,
56 ::Block const&,
57 ::std::optional<::mce::Color>
58 );
59
60 virtual void playMusic(::std::string const&, ::Vec3 const&, float, float);
61
62 virtual void playStreamingMusic(::std::string const&, int, int, int);
63
64 virtual void onEntityAdded(::Actor&);
65
66 virtual void onEntityRemoved(::Actor&);
67
68 virtual void onChunkLoaded(::ChunkSource&, ::LevelChunk&);
69
70 virtual void onChunkReloaded(::ChunkSource&, ::LevelChunk&);
71
72 virtual void onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
73
74 virtual void onChunkUnloaded(::LevelChunk&);
75
76 virtual void onLevelDestruction(::std::string const&);
77
78 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int);
79
80 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&);
81
82 virtual void takePicture(
84 ::Actor*,
85 ::Actor*,
87 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
88 );
89
90 virtual void playerListChanged();
91
92 virtual void onLevelDataCommandsChanged(bool);
93
94 virtual void onLevelDataWorldTemplateOptionsUnlocked();
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCFOLD void $dtor();
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCFOLD void $allChanged();
107
108 MCFOLD void $sendServerLegacyParticle(::ParticleType, ::Vec3 const&, ::Vec3 const&, int);
109
110 MCFOLD void $addParticleEffect(
111 ::HashedString const&,
112 ::Actor const&,
113 ::HashedString const&,
114 ::Vec3 const&,
116 );
117
118 MCFOLD void $addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
119
120 MCFOLD void $addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
121
122 MCFOLD void
123 $addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
124
125 MCFOLD void $addBiomeTintedParticleEffect(
126 ::HashedString const&,
127 ::BlockPos const&,
128 ::Block const&,
129 ::std::optional<::mce::Color>
130 );
131
132 MCFOLD void $playMusic(::std::string const&, ::Vec3 const&, float, float);
133
134 MCFOLD void $playStreamingMusic(::std::string const&, int, int, int);
135
136 MCFOLD void $onEntityAdded(::Actor&);
137
138 MCFOLD void $onEntityRemoved(::Actor&);
139
140 MCFOLD void $onChunkLoaded(::ChunkSource&, ::LevelChunk&);
141
142 MCFOLD void $onChunkReloaded(::ChunkSource&, ::LevelChunk&);
143
144 MCFOLD void $onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
145
146 MCFOLD void $onChunkUnloaded(::LevelChunk&);
147
148 MCFOLD void $onLevelDestruction(::std::string const&);
149
150#ifdef LL_PLAT_S
151 MCFOLD void $levelEvent(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int);
152
153 MCFOLD void $levelEvent(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&);
154#endif
155
156 MCAPI void $takePicture(
158 ::Actor*,
159 ::Actor*,
161 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
162 );
163
164 MCFOLD void $playerListChanged();
165
166 MCFOLD void $onLevelDataCommandsChanged(bool);
167
168 MCFOLD void $onLevelDataWorldTemplateOptionsUnlocked();
169
170
171 // NOLINTEND
172
173public:
174 // vftables
175 // NOLINTBEGIN
176 MCAPI static void** $vftable();
177 // NOLINTEND
178};
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSourceListener.h:18
Definition Block.h:43
Definition ChunkSource.h:37
Definition CompoundTag.h:23
Definition HashedString.h:5
Definition LevelChunk.h:79
Definition LevelListener.h:28
Definition MolangVariableMap.h:17
Definition Vec3.h:10
Definition ImageBuffer.h:16
Definition Color.h:13
Definition BreakingItemParticleData.h:8
Definition ResolvedItemIconInfo.h:8
Definition ScreenshotOptions.h:9