PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
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 handleLevelSoundEventPacketV1(LevelSoundEventPacketV1 $packet) : bool;
66
67 public function handleLevelEvent(LevelEventPacket $packet) : bool;
68
69 public function handleBlockEvent(BlockEventPacket $packet) : bool;
70
71 public function handleActorEvent(ActorEventPacket $packet) : bool;
72
73 public function handleMobEffect(MobEffectPacket $packet) : bool;
74
75 public function handleUpdateAttributes(UpdateAttributesPacket $packet) : bool;
76
77 public function handleInventoryTransaction(InventoryTransactionPacket $packet) : bool;
78
79 public function handleMobEquipment(MobEquipmentPacket $packet) : bool;
80
81 public function handleMobArmorEquipment(MobArmorEquipmentPacket $packet) : bool;
82
83 public function handleInteract(InteractPacket $packet) : bool;
84
85 public function handleBlockPickRequest(BlockPickRequestPacket $packet) : bool;
86
87 public function handleActorPickRequest(ActorPickRequestPacket $packet) : bool;
88
89 public function handlePlayerAction(PlayerActionPacket $packet) : bool;
90
91 public function handleHurtArmor(HurtArmorPacket $packet) : bool;
92
93 public function handleSetActorData(SetActorDataPacket $packet) : bool;
94
95 public function handleSetActorMotion(SetActorMotionPacket $packet) : bool;
96
97 public function handleSetActorLink(SetActorLinkPacket $packet) : bool;
98
99 public function handleSetHealth(SetHealthPacket $packet) : bool;
100
101 public function handleSetSpawnPosition(SetSpawnPositionPacket $packet) : bool;
102
103 public function handleAnimate(AnimatePacket $packet) : bool;
104
105 public function handleRespawn(RespawnPacket $packet) : bool;
106
107 public function handleContainerOpen(ContainerOpenPacket $packet) : bool;
108
109 public function handleContainerClose(ContainerClosePacket $packet) : bool;
110
111 public function handlePlayerHotbar(PlayerHotbarPacket $packet) : bool;
112
113 public function handleInventoryContent(InventoryContentPacket $packet) : bool;
114
115 public function handleInventorySlot(InventorySlotPacket $packet) : bool;
116
117 public function handleContainerSetData(ContainerSetDataPacket $packet) : bool;
118
119 public function handleCraftingData(CraftingDataPacket $packet) : bool;
120
121 public function handleGuiDataPickItem(GuiDataPickItemPacket $packet) : bool;
122
123 public function handleBlockActorData(BlockActorDataPacket $packet) : bool;
124
125 public function handlePlayerInput(PlayerInputPacket $packet) : bool;
126
127 public function handleLevelChunk(LevelChunkPacket $packet) : bool;
128
129 public function handleSetCommandsEnabled(SetCommandsEnabledPacket $packet) : bool;
130
131 public function handleSetDifficulty(SetDifficultyPacket $packet) : bool;
132
133 public function handleChangeDimension(ChangeDimensionPacket $packet) : bool;
134
135 public function handleSetPlayerGameType(SetPlayerGameTypePacket $packet) : bool;
136
137 public function handlePlayerList(PlayerListPacket $packet) : bool;
138
139 public function handleSimpleEvent(SimpleEventPacket $packet) : bool;
140
141 public function handleLegacyTelemetryEvent(LegacyTelemetryEventPacket $packet) : bool;
142
143 public function handleSpawnExperienceOrb(SpawnExperienceOrbPacket $packet) : bool;
144
145 public function handleClientboundMapItemData(ClientboundMapItemDataPacket $packet) : bool;
146
147 public function handleMapInfoRequest(MapInfoRequestPacket $packet) : bool;
148
149 public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool;
150
151 public function handleChunkRadiusUpdated(ChunkRadiusUpdatedPacket $packet) : bool;
152
153 public function handleGameRulesChanged(GameRulesChangedPacket $packet) : bool;
154
155 public function handleCamera(CameraPacket $packet) : bool;
156
157 public function handleBossEvent(BossEventPacket $packet) : bool;
158
159 public function handleShowCredits(ShowCreditsPacket $packet) : bool;
160
161 public function handleAvailableCommands(AvailableCommandsPacket $packet) : bool;
162
163 public function handleCommandRequest(CommandRequestPacket $packet) : bool;
164
165 public function handleCommandBlockUpdate(CommandBlockUpdatePacket $packet) : bool;
166
167 public function handleCommandOutput(CommandOutputPacket $packet) : bool;
168
169 public function handleUpdateTrade(UpdateTradePacket $packet) : bool;
170
171 public function handleUpdateEquip(UpdateEquipPacket $packet) : bool;
172
173 public function handleResourcePackDataInfo(ResourcePackDataInfoPacket $packet) : bool;
174
175 public function handleResourcePackChunkData(ResourcePackChunkDataPacket $packet) : bool;
176
177 public function handleResourcePackChunkRequest(ResourcePackChunkRequestPacket $packet) : bool;
178
179 public function handleTransfer(TransferPacket $packet) : bool;
180
181 public function handlePlaySound(PlaySoundPacket $packet) : bool;
182
183 public function handleStopSound(StopSoundPacket $packet) : bool;
184
185 public function handleSetTitle(SetTitlePacket $packet) : bool;
186
187 public function handleAddBehaviorTree(AddBehaviorTreePacket $packet) : bool;
188
189 public function handleStructureBlockUpdate(StructureBlockUpdatePacket $packet) : bool;
190
191 public function handleShowStoreOffer(ShowStoreOfferPacket $packet) : bool;
192
193 public function handlePurchaseReceipt(PurchaseReceiptPacket $packet) : bool;
194
195 public function handlePlayerSkin(PlayerSkinPacket $packet) : bool;
196
197 public function handleSubClientLogin(SubClientLoginPacket $packet) : bool;
198
199 public function handleAutomationClientConnect(AutomationClientConnectPacket $packet) : bool;
200
201 public function handleSetLastHurtBy(SetLastHurtByPacket $packet) : bool;
202
203 public function handleBookEdit(BookEditPacket $packet) : bool;
204
205 public function handleNpcRequest(NpcRequestPacket $packet) : bool;
206
207 public function handlePhotoTransfer(PhotoTransferPacket $packet) : bool;
208
209 public function handleModalFormRequest(ModalFormRequestPacket $packet) : bool;
210
211 public function handleModalFormResponse(ModalFormResponsePacket $packet) : bool;
212
213 public function handleServerSettingsRequest(ServerSettingsRequestPacket $packet) : bool;
214
215 public function handleServerSettingsResponse(ServerSettingsResponsePacket $packet) : bool;
216
217 public function handleShowProfile(ShowProfilePacket $packet) : bool;
218
219 public function handleSetDefaultGameType(SetDefaultGameTypePacket $packet) : bool;
220
221 public function handleRemoveObjective(RemoveObjectivePacket $packet) : bool;
222
223 public function handleSetDisplayObjective(SetDisplayObjectivePacket $packet) : bool;
224
225 public function handleSetScore(SetScorePacket $packet) : bool;
226
227 public function handleLabTable(LabTablePacket $packet) : bool;
228
229 public function handleUpdateBlockSynced(UpdateBlockSyncedPacket $packet) : bool;
230
231 public function handleMoveActorDelta(MoveActorDeltaPacket $packet) : bool;
232
233 public function handleSetScoreboardIdentity(SetScoreboardIdentityPacket $packet) : bool;
234
235 public function handleSetLocalPlayerAsInitialized(SetLocalPlayerAsInitializedPacket $packet) : bool;
236
237 public function handleUpdateSoftEnum(UpdateSoftEnumPacket $packet) : bool;
238
239 public function handleNetworkStackLatency(NetworkStackLatencyPacket $packet) : bool;
240
241 public function handleSpawnParticleEffect(SpawnParticleEffectPacket $packet) : bool;
242
243 public function handleAvailableActorIdentifiers(AvailableActorIdentifiersPacket $packet) : bool;
244
245 public function handleLevelSoundEventPacketV2(LevelSoundEventPacketV2 $packet) : bool;
246
247 public function handleNetworkChunkPublisherUpdate(NetworkChunkPublisherUpdatePacket $packet) : bool;
248
249 public function handleBiomeDefinitionList(BiomeDefinitionListPacket $packet) : bool;
250
251 public function handleLevelSoundEvent(LevelSoundEventPacket $packet) : bool;
252
253 public function handleLevelEventGeneric(LevelEventGenericPacket $packet) : bool;
254
255 public function handleLecternUpdate(LecternUpdatePacket $packet) : bool;
256
257 public function handleClientCacheStatus(ClientCacheStatusPacket $packet) : bool;
258
259 public function handleOnScreenTextureAnimation(OnScreenTextureAnimationPacket $packet) : bool;
260
261 public function handleMapCreateLockedCopy(MapCreateLockedCopyPacket $packet) : bool;
262
263 public function handleStructureTemplateDataRequest(StructureTemplateDataRequestPacket $packet) : bool;
264
265 public function handleStructureTemplateDataResponse(StructureTemplateDataResponsePacket $packet) : bool;
266
267 public function handleClientCacheBlobStatus(ClientCacheBlobStatusPacket $packet) : bool;
268
269 public function handleClientCacheMissResponse(ClientCacheMissResponsePacket $packet) : bool;
270
271 public function handleEducationSettings(EducationSettingsPacket $packet) : bool;
272
273 public function handleEmote(EmotePacket $packet) : bool;
274
275 public function handleMultiplayerSettings(MultiplayerSettingsPacket $packet) : bool;
276
277 public function handleSettingsCommand(SettingsCommandPacket $packet) : bool;
278
279 public function handleAnvilDamage(AnvilDamagePacket $packet) : bool;
280
281 public function handleCompletedUsingItem(CompletedUsingItemPacket $packet) : bool;
282
283 public function handleNetworkSettings(NetworkSettingsPacket $packet) : bool;
284
285 public function handlePlayerAuthInput(PlayerAuthInputPacket $packet) : bool;
286
287 public function handleCreativeContent(CreativeContentPacket $packet) : bool;
288
289 public function handlePlayerEnchantOptions(PlayerEnchantOptionsPacket $packet) : bool;
290
291 public function handleItemStackRequest(ItemStackRequestPacket $packet) : bool;
292
293 public function handleItemStackResponse(ItemStackResponsePacket $packet) : bool;
294
295 public function handlePlayerArmorDamage(PlayerArmorDamagePacket $packet) : bool;
296
297 public function handleCodeBuilder(CodeBuilderPacket $packet) : bool;
298
299 public function handleUpdatePlayerGameType(UpdatePlayerGameTypePacket $packet) : bool;
300
301 public function handleEmoteList(EmoteListPacket $packet) : bool;
302
303 public function handlePositionTrackingDBServerBroadcast(PositionTrackingDBServerBroadcastPacket $packet) : bool;
304
305 public function handlePositionTrackingDBClientRequest(PositionTrackingDBClientRequestPacket $packet) : bool;
306
307 public function handleDebugInfo(DebugInfoPacket $packet) : bool;
308
309 public function handlePacketViolationWarning(PacketViolationWarningPacket $packet) : bool;
310
311 public function handleMotionPredictionHints(MotionPredictionHintsPacket $packet) : bool;
312
313 public function handleAnimateEntity(AnimateEntityPacket $packet) : bool;
314
315 public function handleCameraShake(CameraShakePacket $packet) : bool;
316
317 public function handlePlayerFog(PlayerFogPacket $packet) : bool;
318
319 public function handleCorrectPlayerMovePrediction(CorrectPlayerMovePredictionPacket $packet) : bool;
320
321 public function handleItemComponent(ItemComponentPacket $packet) : bool;
322
323 public function handleClientboundDebugRenderer(ClientboundDebugRendererPacket $packet) : bool;
324
325 public function handleSyncActorProperty(SyncActorPropertyPacket $packet) : bool;
326
327 public function handleAddVolumeEntity(AddVolumeEntityPacket $packet) : bool;
328
329 public function handleRemoveVolumeEntity(RemoveVolumeEntityPacket $packet) : bool;
330
331 public function handleSimulationType(SimulationTypePacket $packet) : bool;
332
333 public function handleNpcDialogue(NpcDialoguePacket $packet) : bool;
334
335 public function handleEduUriResource(EduUriResourcePacket $packet) : bool;
336
337 public function handleCreatePhoto(CreatePhotoPacket $packet) : bool;
338
339 public function handleUpdateSubChunkBlocks(UpdateSubChunkBlocksPacket $packet) : bool;
340
341 public function handleSubChunk(SubChunkPacket $packet) : bool;
342
343 public function handleSubChunkRequest(SubChunkRequestPacket $packet) : bool;
344
345 public function handlePlayerStartItemCooldown(PlayerStartItemCooldownPacket $packet) : bool;
346
347 public function handleScriptMessage(ScriptMessagePacket $packet) : bool;
348
349 public function handleCodeBuilderSource(CodeBuilderSourcePacket $packet) : bool;
350
351 public function handleTickingAreasLoadStatus(TickingAreasLoadStatusPacket $packet) : bool;
352
353 public function handleDimensionData(DimensionDataPacket $packet) : bool;
354
355 public function handleAgentActionEvent(AgentActionEventPacket $packet) : bool;
356
357 public function handleChangeMobProperty(ChangeMobPropertyPacket $packet) : bool;
358
359 public function handleLessonProgress(LessonProgressPacket $packet) : bool;
360
361 public function handleRequestAbility(RequestAbilityPacket $packet) : bool;
362
363 public function handleRequestPermissions(RequestPermissionsPacket $packet) : bool;
364
365 public function handleToastRequest(ToastRequestPacket $packet) : bool;
366
367 public function handleUpdateAbilities(UpdateAbilitiesPacket $packet) : bool;
368
369 public function handleUpdateAdventureSettings(UpdateAdventureSettingsPacket $packet) : bool;
370
371 public function handleDeathInfo(DeathInfoPacket $packet) : bool;
372
373 public function handleEditorNetwork(EditorNetworkPacket $packet) : bool;
374
375 public function handleFeatureRegistry(FeatureRegistryPacket $packet) : bool;
376
377 public function handleServerStats(ServerStatsPacket $packet) : bool;
378
379 public function handleRequestNetworkSettings(RequestNetworkSettingsPacket $packet) : bool;
380
381 public function handleGameTestRequest(GameTestRequestPacket $packet) : bool;
382
383 public function handleGameTestResults(GameTestResultsPacket $packet) : bool;
384
385 public function handleUpdateClientInputLocks(UpdateClientInputLocksPacket $packet) : bool;
386
387 public function handleCameraPresets(CameraPresetsPacket $packet) : bool;
388
389 public function handleUnlockedRecipes(UnlockedRecipesPacket $packet) : bool;
390
391 public function handleCameraInstruction(CameraInstructionPacket $packet) : bool;
392
393 public function handleCompressedBiomeDefinitionList(CompressedBiomeDefinitionListPacket $packet) : bool;
394
395 public function handleTrimData(TrimDataPacket $packet) : bool;
396
397 public function handleOpenSign(OpenSignPacket $packet) : bool;
398
399 public function handleAgentAnimation(AgentAnimationPacket $packet) : bool;
400
401 public function handleRefreshEntitlements(RefreshEntitlementsPacket $packet) : bool;
402
403 public function handlePlayerToggleCrafterSlotRequest(PlayerToggleCrafterSlotRequestPacket $packet) : bool;
404
405 public function handleSetPlayerInventoryOptions(SetPlayerInventoryOptionsPacket $packet) : bool;
406
407 public function handleSetHud(SetHudPacket $packet) : bool;
408
409 public function handleAwardAchievement(AwardAchievementPacket $packet) : bool;
410
411 public function handleClientboundCloseForm(ClientboundCloseFormPacket $packet) : bool;
412
413 public function handleServerboundLoadingScreen(ServerboundLoadingScreenPacket $packet) : bool;
414
415 public function handleJigsawStructureData(JigsawStructureDataPacket $packet) : bool;
416
417 public function handleCurrentStructureFeature(CurrentStructureFeaturePacket $packet) : bool;
418
419 public function handleServerboundDiagnostics(ServerboundDiagnosticsPacket $packet) : bool;
420
421 public function handleCameraAimAssist(CameraAimAssistPacket $packet) : bool;
422
423 public function handleContainerRegistryCleanup(ContainerRegistryCleanupPacket $packet) : bool;
424
425 public function handleMovementEffect(MovementEffectPacket $packet) : bool;
426
427 public function handleSetMovementAuthority(SetMovementAuthorityPacket $packet) : bool;
428}