PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
PacketHandlerInterface.php
1<?php
2
3/*
4 * This file is part of BedrockProtocol.
5 * Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6 *
7 * BedrockProtocol is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol;
16
21 public function handleLogin(LoginPacket $packet) : bool;
22
23 public function handlePlayStatus(PlayStatusPacket $packet) : bool;
24
25 public function handleServerToClientHandshake(ServerToClientHandshakePacket $packet) : bool;
26
27 public function handleClientToServerHandshake(ClientToServerHandshakePacket $packet) : bool;
28
29 public function handleDisconnect(DisconnectPacket $packet) : bool;
30
31 public function handleResourcePacksInfo(ResourcePacksInfoPacket $packet) : bool;
32
33 public function handleResourcePackStack(ResourcePackStackPacket $packet) : bool;
34
35 public function handleResourcePackClientResponse(ResourcePackClientResponsePacket $packet) : bool;
36
37 public function handleText(TextPacket $packet) : bool;
38
39 public function handleSetTime(SetTimePacket $packet) : bool;
40
41 public function handleStartGame(StartGamePacket $packet) : bool;
42
43 public function handleAddPlayer(AddPlayerPacket $packet) : bool;
44
45 public function handleAddActor(AddActorPacket $packet) : bool;
46
47 public function handleRemoveActor(RemoveActorPacket $packet) : bool;
48
49 public function handleAddItemActor(AddItemActorPacket $packet) : bool;
50
51 public function handleServerPlayerPostMovePosition(ServerPlayerPostMovePositionPacket $packet) : bool;
52
53 public function handleTakeItemActor(TakeItemActorPacket $packet) : bool;
54
55 public function handleMoveActorAbsolute(MoveActorAbsolutePacket $packet) : bool;
56
57 public function handleMovePlayer(MovePlayerPacket $packet) : bool;
58
59 public function handlePassengerJump(PassengerJumpPacket $packet) : bool;
60
61 public function handleUpdateBlock(UpdateBlockPacket $packet) : bool;
62
63 public function handleAddPainting(AddPaintingPacket $packet) : bool;
64
65 public function handleTickSync(TickSyncPacket $packet) : bool;
66
67 public function handleLevelSoundEventPacketV1(LevelSoundEventPacketV1 $packet) : bool;
68
69 public function handleLevelEvent(LevelEventPacket $packet) : bool;
70
71 public function handleBlockEvent(BlockEventPacket $packet) : bool;
72
73 public function handleActorEvent(ActorEventPacket $packet) : bool;
74
75 public function handleMobEffect(MobEffectPacket $packet) : bool;
76
77 public function handleUpdateAttributes(UpdateAttributesPacket $packet) : bool;
78
79 public function handleInventoryTransaction(InventoryTransactionPacket $packet) : bool;
80
81 public function handleMobEquipment(MobEquipmentPacket $packet) : bool;
82
83 public function handleMobArmorEquipment(MobArmorEquipmentPacket $packet) : bool;
84
85 public function handleInteract(InteractPacket $packet) : bool;
86
87 public function handleBlockPickRequest(BlockPickRequestPacket $packet) : bool;
88
89 public function handleActorPickRequest(ActorPickRequestPacket $packet) : bool;
90
91 public function handlePlayerAction(PlayerActionPacket $packet) : bool;
92
93 public function handleHurtArmor(HurtArmorPacket $packet) : bool;
94
95 public function handleSetActorData(SetActorDataPacket $packet) : bool;
96
97 public function handleSetActorMotion(SetActorMotionPacket $packet) : bool;
98
99 public function handleSetActorLink(SetActorLinkPacket $packet) : bool;
100
101 public function handleSetHealth(SetHealthPacket $packet) : bool;
102
103 public function handleSetSpawnPosition(SetSpawnPositionPacket $packet) : bool;
104
105 public function handleAnimate(AnimatePacket $packet) : bool;
106
107 public function handleRespawn(RespawnPacket $packet) : bool;
108
109 public function handleContainerOpen(ContainerOpenPacket $packet) : bool;
110
111 public function handleContainerClose(ContainerClosePacket $packet) : bool;
112
113 public function handlePlayerHotbar(PlayerHotbarPacket $packet) : bool;
114
115 public function handleInventoryContent(InventoryContentPacket $packet) : bool;
116
117 public function handleInventorySlot(InventorySlotPacket $packet) : bool;
118
119 public function handleContainerSetData(ContainerSetDataPacket $packet) : bool;
120
121 public function handleCraftingData(CraftingDataPacket $packet) : bool;
122
123 public function handleGuiDataPickItem(GuiDataPickItemPacket $packet) : bool;
124
125 public function handleBlockActorData(BlockActorDataPacket $packet) : bool;
126
127 public function handlePlayerInput(PlayerInputPacket $packet) : bool;
128
129 public function handleLevelChunk(LevelChunkPacket $packet) : bool;
130
131 public function handleSetCommandsEnabled(SetCommandsEnabledPacket $packet) : bool;
132
133 public function handleSetDifficulty(SetDifficultyPacket $packet) : bool;
134
135 public function handleChangeDimension(ChangeDimensionPacket $packet) : bool;
136
137 public function handleSetPlayerGameType(SetPlayerGameTypePacket $packet) : bool;
138
139 public function handlePlayerList(PlayerListPacket $packet) : bool;
140
141 public function handleSimpleEvent(SimpleEventPacket $packet) : bool;
142
143 public function handleLegacyTelemetryEvent(LegacyTelemetryEventPacket $packet) : bool;
144
145 public function handleSpawnExperienceOrb(SpawnExperienceOrbPacket $packet) : bool;
146
147 public function handleClientboundMapItemData(ClientboundMapItemDataPacket $packet) : bool;
148
149 public function handleMapInfoRequest(MapInfoRequestPacket $packet) : bool;
150
151 public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool;
152
153 public function handleChunkRadiusUpdated(ChunkRadiusUpdatedPacket $packet) : bool;
154
155 public function handleGameRulesChanged(GameRulesChangedPacket $packet) : bool;
156
157 public function handleCamera(CameraPacket $packet) : bool;
158
159 public function handleBossEvent(BossEventPacket $packet) : bool;
160
161 public function handleShowCredits(ShowCreditsPacket $packet) : bool;
162
163 public function handleAvailableCommands(AvailableCommandsPacket $packet) : bool;
164
165 public function handleCommandRequest(CommandRequestPacket $packet) : bool;
166
167 public function handleCommandBlockUpdate(CommandBlockUpdatePacket $packet) : bool;
168
169 public function handleCommandOutput(CommandOutputPacket $packet) : bool;
170
171 public function handleUpdateTrade(UpdateTradePacket $packet) : bool;
172
173 public function handleUpdateEquip(UpdateEquipPacket $packet) : bool;
174
175 public function handleResourcePackDataInfo(ResourcePackDataInfoPacket $packet) : bool;
176
177 public function handleResourcePackChunkData(ResourcePackChunkDataPacket $packet) : bool;
178
179 public function handleResourcePackChunkRequest(ResourcePackChunkRequestPacket $packet) : bool;
180
181 public function handleTransfer(TransferPacket $packet) : bool;
182
183 public function handlePlaySound(PlaySoundPacket $packet) : bool;
184
185 public function handleStopSound(StopSoundPacket $packet) : bool;
186
187 public function handleSetTitle(SetTitlePacket $packet) : bool;
188
189 public function handleAddBehaviorTree(AddBehaviorTreePacket $packet) : bool;
190
191 public function handleStructureBlockUpdate(StructureBlockUpdatePacket $packet) : bool;
192
193 public function handleShowStoreOffer(ShowStoreOfferPacket $packet) : bool;
194
195 public function handlePurchaseReceipt(PurchaseReceiptPacket $packet) : bool;
196
197 public function handlePlayerSkin(PlayerSkinPacket $packet) : bool;
198
199 public function handleSubClientLogin(SubClientLoginPacket $packet) : bool;
200
201 public function handleAutomationClientConnect(AutomationClientConnectPacket $packet) : bool;
202
203 public function handleSetLastHurtBy(SetLastHurtByPacket $packet) : bool;
204
205 public function handleBookEdit(BookEditPacket $packet) : bool;
206
207 public function handleNpcRequest(NpcRequestPacket $packet) : bool;
208
209 public function handlePhotoTransfer(PhotoTransferPacket $packet) : bool;
210
211 public function handleModalFormRequest(ModalFormRequestPacket $packet) : bool;
212
213 public function handleModalFormResponse(ModalFormResponsePacket $packet) : bool;
214
215 public function handleServerSettingsRequest(ServerSettingsRequestPacket $packet) : bool;
216
217 public function handleServerSettingsResponse(ServerSettingsResponsePacket $packet) : bool;
218
219 public function handleShowProfile(ShowProfilePacket $packet) : bool;
220
221 public function handleSetDefaultGameType(SetDefaultGameTypePacket $packet) : bool;
222
223 public function handleRemoveObjective(RemoveObjectivePacket $packet) : bool;
224
225 public function handleSetDisplayObjective(SetDisplayObjectivePacket $packet) : bool;
226
227 public function handleSetScore(SetScorePacket $packet) : bool;
228
229 public function handleLabTable(LabTablePacket $packet) : bool;
230
231 public function handleUpdateBlockSynced(UpdateBlockSyncedPacket $packet) : bool;
232
233 public function handleMoveActorDelta(MoveActorDeltaPacket $packet) : bool;
234
235 public function handleSetScoreboardIdentity(SetScoreboardIdentityPacket $packet) : bool;
236
237 public function handleSetLocalPlayerAsInitialized(SetLocalPlayerAsInitializedPacket $packet) : bool;
238
239 public function handleUpdateSoftEnum(UpdateSoftEnumPacket $packet) : bool;
240
241 public function handleNetworkStackLatency(NetworkStackLatencyPacket $packet) : bool;
242
243 public function handleSpawnParticleEffect(SpawnParticleEffectPacket $packet) : bool;
244
245 public function handleAvailableActorIdentifiers(AvailableActorIdentifiersPacket $packet) : bool;
246
247 public function handleLevelSoundEventPacketV2(LevelSoundEventPacketV2 $packet) : bool;
248
249 public function handleNetworkChunkPublisherUpdate(NetworkChunkPublisherUpdatePacket $packet) : bool;
250
251 public function handleBiomeDefinitionList(BiomeDefinitionListPacket $packet) : bool;
252
253 public function handleLevelSoundEvent(LevelSoundEventPacket $packet) : bool;
254
255 public function handleLevelEventGeneric(LevelEventGenericPacket $packet) : bool;
256
257 public function handleLecternUpdate(LecternUpdatePacket $packet) : bool;
258
259 public function handleClientCacheStatus(ClientCacheStatusPacket $packet) : bool;
260
261 public function handleOnScreenTextureAnimation(OnScreenTextureAnimationPacket $packet) : bool;
262
263 public function handleMapCreateLockedCopy(MapCreateLockedCopyPacket $packet) : bool;
264
265 public function handleStructureTemplateDataRequest(StructureTemplateDataRequestPacket $packet) : bool;
266
267 public function handleStructureTemplateDataResponse(StructureTemplateDataResponsePacket $packet) : bool;
268
269 public function handleClientCacheBlobStatus(ClientCacheBlobStatusPacket $packet) : bool;
270
271 public function handleClientCacheMissResponse(ClientCacheMissResponsePacket $packet) : bool;
272
273 public function handleEducationSettings(EducationSettingsPacket $packet) : bool;
274
275 public function handleEmote(EmotePacket $packet) : bool;
276
277 public function handleMultiplayerSettings(MultiplayerSettingsPacket $packet) : bool;
278
279 public function handleSettingsCommand(SettingsCommandPacket $packet) : bool;
280
281 public function handleAnvilDamage(AnvilDamagePacket $packet) : bool;
282
283 public function handleCompletedUsingItem(CompletedUsingItemPacket $packet) : bool;
284
285 public function handleNetworkSettings(NetworkSettingsPacket $packet) : bool;
286
287 public function handlePlayerAuthInput(PlayerAuthInputPacket $packet) : bool;
288
289 public function handleCreativeContent(CreativeContentPacket $packet) : bool;
290
291 public function handlePlayerEnchantOptions(PlayerEnchantOptionsPacket $packet) : bool;
292
293 public function handleItemStackRequest(ItemStackRequestPacket $packet) : bool;
294
295 public function handleItemStackResponse(ItemStackResponsePacket $packet) : bool;
296
297 public function handlePlayerArmorDamage(PlayerArmorDamagePacket $packet) : bool;
298
299 public function handleCodeBuilder(CodeBuilderPacket $packet) : bool;
300
301 public function handleUpdatePlayerGameType(UpdatePlayerGameTypePacket $packet) : bool;
302
303 public function handleEmoteList(EmoteListPacket $packet) : bool;
304
305 public function handlePositionTrackingDBServerBroadcast(PositionTrackingDBServerBroadcastPacket $packet) : bool;
306
307 public function handlePositionTrackingDBClientRequest(PositionTrackingDBClientRequestPacket $packet) : bool;
308
309 public function handleDebugInfo(DebugInfoPacket $packet) : bool;
310
311 public function handlePacketViolationWarning(PacketViolationWarningPacket $packet) : bool;
312
313 public function handleMotionPredictionHints(MotionPredictionHintsPacket $packet) : bool;
314
315 public function handleAnimateEntity(AnimateEntityPacket $packet) : bool;
316
317 public function handleCameraShake(CameraShakePacket $packet) : bool;
318
319 public function handlePlayerFog(PlayerFogPacket $packet) : bool;
320
321 public function handleCorrectPlayerMovePrediction(CorrectPlayerMovePredictionPacket $packet) : bool;
322
323 public function handleItemComponent(ItemComponentPacket $packet) : bool;
324
325 public function handleClientboundDebugRenderer(ClientboundDebugRendererPacket $packet) : bool;
326
327 public function handleSyncActorProperty(SyncActorPropertyPacket $packet) : bool;
328
329 public function handleAddVolumeEntity(AddVolumeEntityPacket $packet) : bool;
330
331 public function handleRemoveVolumeEntity(RemoveVolumeEntityPacket $packet) : bool;
332
333 public function handleSimulationType(SimulationTypePacket $packet) : bool;
334
335 public function handleNpcDialogue(NpcDialoguePacket $packet) : bool;
336
337 public function handleEduUriResource(EduUriResourcePacket $packet) : bool;
338
339 public function handleCreatePhoto(CreatePhotoPacket $packet) : bool;
340
341 public function handleUpdateSubChunkBlocks(UpdateSubChunkBlocksPacket $packet) : bool;
342
343 public function handleSubChunk(SubChunkPacket $packet) : bool;
344
345 public function handleSubChunkRequest(SubChunkRequestPacket $packet) : bool;
346
347 public function handlePlayerStartItemCooldown(PlayerStartItemCooldownPacket $packet) : bool;
348
349 public function handleScriptMessage(ScriptMessagePacket $packet) : bool;
350
351 public function handleCodeBuilderSource(CodeBuilderSourcePacket $packet) : bool;
352
353 public function handleTickingAreasLoadStatus(TickingAreasLoadStatusPacket $packet) : bool;
354
355 public function handleDimensionData(DimensionDataPacket $packet) : bool;
356
357 public function handleAgentActionEvent(AgentActionEventPacket $packet) : bool;
358
359 public function handleChangeMobProperty(ChangeMobPropertyPacket $packet) : bool;
360
361 public function handleLessonProgress(LessonProgressPacket $packet) : bool;
362
363 public function handleRequestAbility(RequestAbilityPacket $packet) : bool;
364
365 public function handleRequestPermissions(RequestPermissionsPacket $packet) : bool;
366
367 public function handleToastRequest(ToastRequestPacket $packet) : bool;
368
369 public function handleUpdateAbilities(UpdateAbilitiesPacket $packet) : bool;
370
371 public function handleUpdateAdventureSettings(UpdateAdventureSettingsPacket $packet) : bool;
372
373 public function handleDeathInfo(DeathInfoPacket $packet) : bool;
374
375 public function handleEditorNetwork(EditorNetworkPacket $packet) : bool;
376
377 public function handleFeatureRegistry(FeatureRegistryPacket $packet) : bool;
378
379 public function handleServerStats(ServerStatsPacket $packet) : bool;
380
381 public function handleRequestNetworkSettings(RequestNetworkSettingsPacket $packet) : bool;
382
383 public function handleGameTestRequest(GameTestRequestPacket $packet) : bool;
384
385 public function handleGameTestResults(GameTestResultsPacket $packet) : bool;
386
387 public function handleUpdateClientInputLocks(UpdateClientInputLocksPacket $packet) : bool;
388
389 public function handleCameraPresets(CameraPresetsPacket $packet) : bool;
390
391 public function handleUnlockedRecipes(UnlockedRecipesPacket $packet) : bool;
392
393 public function handleCameraInstruction(CameraInstructionPacket $packet) : bool;
394
395 public function handleCompressedBiomeDefinitionList(CompressedBiomeDefinitionListPacket $packet) : bool;
396
397 public function handleTrimData(TrimDataPacket $packet) : bool;
398
399 public function handleOpenSign(OpenSignPacket $packet) : bool;
400
401 public function handleAgentAnimation(AgentAnimationPacket $packet) : bool;
402
403 public function handleRefreshEntitlements(RefreshEntitlementsPacket $packet) : bool;
404
405 public function handlePlayerToggleCrafterSlotRequest(PlayerToggleCrafterSlotRequestPacket $packet) : bool;
406
407 public function handleSetPlayerInventoryOptions(SetPlayerInventoryOptionsPacket $packet) : bool;
408
409 public function handleSetHud(SetHudPacket $packet) : bool;
410}