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 // vIndex: 0
33 virtual ~LevelListener() /*override*/;
34
35 // vIndex: 9
36 virtual void allChanged();
37
38 // vIndex: 10
39 virtual void sendServerLegacyParticle(::ParticleType, ::Vec3 const&, ::Vec3 const&, int);
40
41 // vIndex: 11
42 virtual void addParticleEffect(
43 ::HashedString const&,
44 ::Actor const&,
45 ::HashedString const&,
46 ::Vec3 const&,
48 );
49
50 // vIndex: 12
51 virtual void addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
52
53 // vIndex: 13
54 virtual void addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
55
56 // vIndex: 14
57 virtual void
58 addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
59
60 // vIndex: 15
61 virtual void addBiomeTintedParticleEffect(
62 ::HashedString const&,
63 ::BlockPos const&,
64 ::Block const&,
65 ::std::optional<::mce::Color>
66 );
67
68 // vIndex: 16
69 virtual void playMusic(::std::string const&, ::Vec3 const&, float, float);
70
71 // vIndex: 17
72 virtual void playStreamingMusic(::std::string const&, int, int, int);
73
74 // vIndex: 18
75 virtual void onEntityAdded(::Actor&);
76
77 // vIndex: 19
78 virtual void onEntityRemoved(::Actor&);
79
80 // vIndex: 20
81 virtual void onChunkLoaded(::ChunkSource&, ::LevelChunk&);
82
83 // vIndex: 21
84 virtual void onChunkReloaded(::ChunkSource&, ::LevelChunk&);
85
86 // vIndex: 22
87 virtual void onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
88
89 // vIndex: 23
90 virtual void onChunkUnloaded(::LevelChunk&);
91
92 // vIndex: 24
93 virtual void onLevelDestruction(::std::string const&);
94
95 // vIndex: 26
96 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::Vec3 const&, int);
97
98 // vIndex: 25
99 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent, ::CompoundTag const&);
100
101 // vIndex: 27
102 virtual void takePicture(
104 ::Actor*,
105 ::Actor*,
107 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
108 );
109
110 // vIndex: 28
111 virtual void playerListChanged();
112
113 // vIndex: 29
114 virtual void onLevelDataCommandsChanged(bool);
115
116 // vIndex: 30
117 virtual void onLevelDataWorldTemplateOptionsUnlocked();
118 // NOLINTEND
119
120public:
121 // destructor thunk
122 // NOLINTBEGIN
123 MCFOLD void $dtor();
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCFOLD void $allChanged();
130
131 MCFOLD void $sendServerLegacyParticle(::ParticleType, ::Vec3 const&, ::Vec3 const&, int);
132
133 MCFOLD void $addParticleEffect(
134 ::HashedString const&,
135 ::Actor const&,
136 ::HashedString const&,
137 ::Vec3 const&,
139 );
140
141 MCFOLD void $addTerrainParticleEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
142
143 MCFOLD void $addTerrainSlideEffect(::BlockPos const&, ::Block const&, ::Vec3 const&, float, float, float);
144
145 MCFOLD void
146 $addBreakingItemParticleEffect(::Vec3 const&, ::BreakingItemParticleData const&, ::ResolvedItemIconInfo const&);
147
148 MCFOLD void $addBiomeTintedParticleEffect(
149 ::HashedString const&,
150 ::BlockPos const&,
151 ::Block const&,
152 ::std::optional<::mce::Color>
153 );
154
155 MCFOLD void $playMusic(::std::string const&, ::Vec3 const&, float, float);
156
157 MCFOLD void $playStreamingMusic(::std::string const&, int, int, int);
158
159 MCFOLD void $onEntityAdded(::Actor&);
160
161 MCFOLD void $onEntityRemoved(::Actor&);
162
163 MCFOLD void $onChunkLoaded(::ChunkSource&, ::LevelChunk&);
164
165 MCFOLD void $onChunkReloaded(::ChunkSource&, ::LevelChunk&);
166
167 MCFOLD void $onSubChunkLoaded(::ChunkSource&, ::LevelChunk&, short, bool);
168
169 MCFOLD void $onChunkUnloaded(::LevelChunk&);
170
171 MCFOLD void $onLevelDestruction(::std::string const&);
172
173 MCAPI void $takePicture(
175 ::Actor*,
176 ::Actor*,
178 ::std::function<void(::cg::ImageBuffer&, ::ScreenshotOptions&)>
179 );
180
181 MCFOLD void $playerListChanged();
182
183 MCFOLD void $onLevelDataCommandsChanged(bool);
184
185 MCFOLD void $onLevelDataWorldTemplateOptionsUnlocked();
186 // NOLINTEND
187
188public:
189 // vftables
190 // NOLINTBEGIN
191 MCNAPI static void** $vftable();
192 // NOLINTEND
193};
Definition Actor.h:103
Definition BlockPos.h:18
Definition BlockSourceListener.h:18
Definition Block.h:38
Definition ChunkSource.h:34
Definition CompoundTag.h:13
Definition HashedString.h:5
Definition LevelChunk.h:74
Definition LevelListener.h:28
static MCAPI void ** $vftable()
Definition MolangVariableMap.h:15
Definition Vec3.h:10
Definition ImageBuffer.h:12
Definition BreakingItemParticleData.h:5
Definition ResolvedItemIconInfo.h:8
Definition ScreenshotOptions.h:5