PocketMine-MP
5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
PacketPool.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
13
declare(strict_types=1);
14
15
namespace
pocketmine\network\mcpe\protocol;
16
17
use
pocketmine\utils\Binary
;
18
use
pocketmine\utils\BinaryDataException
;
19
20
class
PacketPool
{
21
protected
static
?
PacketPool
$instance =
null
;
22
23
public
static
function
getInstance() :
self
{
24
if
(self::$instance ===
null
){
25
self::$instance =
new
self
;
26
}
27
return
self::$instance;
28
}
29
31
protected \SplFixedArray $pool;
32
33
public
function
__construct(){
34
$this->pool = new \SplFixedArray(512);
35
36
$this->registerPacket(
new
LoginPacket
());
37
$this->registerPacket(
new
PlayStatusPacket
());
38
$this->registerPacket(
new
ServerToClientHandshakePacket
());
39
$this->registerPacket(
new
ClientToServerHandshakePacket
());
40
$this->registerPacket(
new
DisconnectPacket
());
41
$this->registerPacket(
new
ResourcePacksInfoPacket
());
42
$this->registerPacket(
new
ResourcePackStackPacket
());
43
$this->registerPacket(
new
ResourcePackClientResponsePacket
());
44
$this->registerPacket(
new
TextPacket
());
45
$this->registerPacket(
new
SetTimePacket
());
46
$this->registerPacket(
new
StartGamePacket
());
47
$this->registerPacket(
new
AddPlayerPacket
());
48
$this->registerPacket(
new
AddActorPacket
());
49
$this->registerPacket(
new
RemoveActorPacket
());
50
$this->registerPacket(
new
AddItemActorPacket
());
51
$this->registerPacket(
new
ServerPlayerPostMovePositionPacket
());
52
$this->registerPacket(
new
TakeItemActorPacket
());
53
$this->registerPacket(
new
MoveActorAbsolutePacket
());
54
$this->registerPacket(
new
MovePlayerPacket
());
55
$this->registerPacket(
new
PassengerJumpPacket
());
56
$this->registerPacket(
new
UpdateBlockPacket
());
57
$this->registerPacket(
new
AddPaintingPacket
());
58
$this->registerPacket(
new
LevelSoundEventPacketV1
());
59
$this->registerPacket(
new
LevelEventPacket
());
60
$this->registerPacket(
new
BlockEventPacket
());
61
$this->registerPacket(
new
ActorEventPacket
());
62
$this->registerPacket(
new
MobEffectPacket
());
63
$this->registerPacket(
new
UpdateAttributesPacket
());
64
$this->registerPacket(
new
InventoryTransactionPacket
());
65
$this->registerPacket(
new
MobEquipmentPacket
());
66
$this->registerPacket(
new
MobArmorEquipmentPacket
());
67
$this->registerPacket(
new
InteractPacket
());
68
$this->registerPacket(
new
BlockPickRequestPacket
());
69
$this->registerPacket(
new
ActorPickRequestPacket
());
70
$this->registerPacket(
new
PlayerActionPacket
());
71
$this->registerPacket(
new
HurtArmorPacket
());
72
$this->registerPacket(
new
SetActorDataPacket
());
73
$this->registerPacket(
new
SetActorMotionPacket
());
74
$this->registerPacket(
new
SetActorLinkPacket
());
75
$this->registerPacket(
new
SetHealthPacket
());
76
$this->registerPacket(
new
SetSpawnPositionPacket
());
77
$this->registerPacket(
new
AnimatePacket
());
78
$this->registerPacket(
new
RespawnPacket
());
79
$this->registerPacket(
new
ContainerOpenPacket
());
80
$this->registerPacket(
new
ContainerClosePacket
());
81
$this->registerPacket(
new
PlayerHotbarPacket
());
82
$this->registerPacket(
new
InventoryContentPacket
());
83
$this->registerPacket(
new
InventorySlotPacket
());
84
$this->registerPacket(
new
ContainerSetDataPacket
());
85
$this->registerPacket(
new
CraftingDataPacket
());
86
$this->registerPacket(
new
GuiDataPickItemPacket
());
87
$this->registerPacket(
new
BlockActorDataPacket
());
88
$this->registerPacket(
new
PlayerInputPacket
());
89
$this->registerPacket(
new
LevelChunkPacket
());
90
$this->registerPacket(
new
SetCommandsEnabledPacket
());
91
$this->registerPacket(
new
SetDifficultyPacket
());
92
$this->registerPacket(
new
ChangeDimensionPacket
());
93
$this->registerPacket(
new
SetPlayerGameTypePacket
());
94
$this->registerPacket(
new
PlayerListPacket
());
95
$this->registerPacket(
new
SimpleEventPacket
());
96
$this->registerPacket(
new
LegacyTelemetryEventPacket
());
97
$this->registerPacket(
new
SpawnExperienceOrbPacket
());
98
$this->registerPacket(
new
ClientboundMapItemDataPacket
());
99
$this->registerPacket(
new
MapInfoRequestPacket
());
100
$this->registerPacket(
new
RequestChunkRadiusPacket
());
101
$this->registerPacket(
new
ChunkRadiusUpdatedPacket
());
102
$this->registerPacket(
new
GameRulesChangedPacket
());
103
$this->registerPacket(
new
CameraPacket
());
104
$this->registerPacket(
new
BossEventPacket
());
105
$this->registerPacket(
new
ShowCreditsPacket
());
106
$this->registerPacket(
new
AvailableCommandsPacket
());
107
$this->registerPacket(
new
CommandRequestPacket
());
108
$this->registerPacket(
new
CommandBlockUpdatePacket
());
109
$this->registerPacket(
new
CommandOutputPacket
());
110
$this->registerPacket(
new
UpdateTradePacket
());
111
$this->registerPacket(
new
UpdateEquipPacket
());
112
$this->registerPacket(
new
ResourcePackDataInfoPacket
());
113
$this->registerPacket(
new
ResourcePackChunkDataPacket
());
114
$this->registerPacket(
new
ResourcePackChunkRequestPacket
());
115
$this->registerPacket(
new
TransferPacket
());
116
$this->registerPacket(
new
PlaySoundPacket
());
117
$this->registerPacket(
new
StopSoundPacket
());
118
$this->registerPacket(
new
SetTitlePacket
());
119
$this->registerPacket(
new
AddBehaviorTreePacket
());
120
$this->registerPacket(
new
StructureBlockUpdatePacket
());
121
$this->registerPacket(
new
ShowStoreOfferPacket
());
122
$this->registerPacket(
new
PurchaseReceiptPacket
());
123
$this->registerPacket(
new
PlayerSkinPacket
());
124
$this->registerPacket(
new
SubClientLoginPacket
());
125
$this->registerPacket(
new
AutomationClientConnectPacket
());
126
$this->registerPacket(
new
SetLastHurtByPacket
());
127
$this->registerPacket(
new
BookEditPacket
());
128
$this->registerPacket(
new
NpcRequestPacket
());
129
$this->registerPacket(
new
PhotoTransferPacket
());
130
$this->registerPacket(
new
ModalFormRequestPacket
());
131
$this->registerPacket(
new
ModalFormResponsePacket
());
132
$this->registerPacket(
new
ServerSettingsRequestPacket
());
133
$this->registerPacket(
new
ServerSettingsResponsePacket
());
134
$this->registerPacket(
new
ShowProfilePacket
());
135
$this->registerPacket(
new
SetDefaultGameTypePacket
());
136
$this->registerPacket(
new
RemoveObjectivePacket
());
137
$this->registerPacket(
new
SetDisplayObjectivePacket
());
138
$this->registerPacket(
new
SetScorePacket
());
139
$this->registerPacket(
new
LabTablePacket
());
140
$this->registerPacket(
new
UpdateBlockSyncedPacket
());
141
$this->registerPacket(
new
MoveActorDeltaPacket
());
142
$this->registerPacket(
new
SetScoreboardIdentityPacket
());
143
$this->registerPacket(
new
SetLocalPlayerAsInitializedPacket
());
144
$this->registerPacket(
new
UpdateSoftEnumPacket
());
145
$this->registerPacket(
new
NetworkStackLatencyPacket
());
146
$this->registerPacket(
new
SpawnParticleEffectPacket
());
147
$this->registerPacket(
new
AvailableActorIdentifiersPacket
());
148
$this->registerPacket(
new
LevelSoundEventPacketV2
());
149
$this->registerPacket(
new
NetworkChunkPublisherUpdatePacket
());
150
$this->registerPacket(
new
BiomeDefinitionListPacket
());
151
$this->registerPacket(
new
LevelSoundEventPacket
());
152
$this->registerPacket(
new
LevelEventGenericPacket
());
153
$this->registerPacket(
new
LecternUpdatePacket
());
154
$this->registerPacket(
new
ClientCacheStatusPacket
());
155
$this->registerPacket(
new
OnScreenTextureAnimationPacket
());
156
$this->registerPacket(
new
MapCreateLockedCopyPacket
());
157
$this->registerPacket(
new
StructureTemplateDataRequestPacket
());
158
$this->registerPacket(
new
StructureTemplateDataResponsePacket
());
159
$this->registerPacket(
new
ClientCacheBlobStatusPacket
());
160
$this->registerPacket(
new
ClientCacheMissResponsePacket
());
161
$this->registerPacket(
new
EducationSettingsPacket
());
162
$this->registerPacket(
new
EmotePacket
());
163
$this->registerPacket(
new
MultiplayerSettingsPacket
());
164
$this->registerPacket(
new
SettingsCommandPacket
());
165
$this->registerPacket(
new
AnvilDamagePacket
());
166
$this->registerPacket(
new
CompletedUsingItemPacket
());
167
$this->registerPacket(
new
NetworkSettingsPacket
());
168
$this->registerPacket(
new
PlayerAuthInputPacket
());
169
$this->registerPacket(
new
CreativeContentPacket
());
170
$this->registerPacket(
new
PlayerEnchantOptionsPacket
());
171
$this->registerPacket(
new
ItemStackRequestPacket
());
172
$this->registerPacket(
new
ItemStackResponsePacket
());
173
$this->registerPacket(
new
PlayerArmorDamagePacket
());
174
$this->registerPacket(
new
CodeBuilderPacket
());
175
$this->registerPacket(
new
UpdatePlayerGameTypePacket
());
176
$this->registerPacket(
new
EmoteListPacket
());
177
$this->registerPacket(
new
PositionTrackingDBServerBroadcastPacket
());
178
$this->registerPacket(
new
PositionTrackingDBClientRequestPacket
());
179
$this->registerPacket(
new
DebugInfoPacket
());
180
$this->registerPacket(
new
PacketViolationWarningPacket
());
181
$this->registerPacket(
new
MotionPredictionHintsPacket
());
182
$this->registerPacket(
new
AnimateEntityPacket
());
183
$this->registerPacket(
new
CameraShakePacket
());
184
$this->registerPacket(
new
PlayerFogPacket
());
185
$this->registerPacket(
new
CorrectPlayerMovePredictionPacket
());
186
$this->registerPacket(
new
ItemComponentPacket
());
187
$this->registerPacket(
new
ClientboundDebugRendererPacket
());
188
$this->registerPacket(
new
SyncActorPropertyPacket
());
189
$this->registerPacket(
new
AddVolumeEntityPacket
());
190
$this->registerPacket(
new
RemoveVolumeEntityPacket
());
191
$this->registerPacket(
new
SimulationTypePacket
());
192
$this->registerPacket(
new
NpcDialoguePacket
());
193
$this->registerPacket(
new
EduUriResourcePacket
());
194
$this->registerPacket(
new
CreatePhotoPacket
());
195
$this->registerPacket(
new
UpdateSubChunkBlocksPacket
());
196
$this->registerPacket(
new
SubChunkPacket
());
197
$this->registerPacket(
new
SubChunkRequestPacket
());
198
$this->registerPacket(
new
PlayerStartItemCooldownPacket
());
199
$this->registerPacket(
new
ScriptMessagePacket
());
200
$this->registerPacket(
new
CodeBuilderSourcePacket
());
201
$this->registerPacket(
new
TickingAreasLoadStatusPacket
());
202
$this->registerPacket(
new
DimensionDataPacket
());
203
$this->registerPacket(
new
AgentActionEventPacket
());
204
$this->registerPacket(
new
ChangeMobPropertyPacket
());
205
$this->registerPacket(
new
LessonProgressPacket
());
206
$this->registerPacket(
new
RequestAbilityPacket
());
207
$this->registerPacket(
new
RequestPermissionsPacket
());
208
$this->registerPacket(
new
ToastRequestPacket
());
209
$this->registerPacket(
new
UpdateAbilitiesPacket
());
210
$this->registerPacket(
new
UpdateAdventureSettingsPacket
());
211
$this->registerPacket(
new
DeathInfoPacket
());
212
$this->registerPacket(
new
EditorNetworkPacket
());
213
$this->registerPacket(
new
FeatureRegistryPacket
());
214
$this->registerPacket(
new
ServerStatsPacket
());
215
$this->registerPacket(
new
RequestNetworkSettingsPacket
());
216
$this->registerPacket(
new
GameTestRequestPacket
());
217
$this->registerPacket(
new
GameTestResultsPacket
());
218
$this->registerPacket(
new
UpdateClientInputLocksPacket
());
219
$this->registerPacket(
new
CameraPresetsPacket
());
220
$this->registerPacket(
new
UnlockedRecipesPacket
());
221
$this->registerPacket(
new
CameraInstructionPacket
());
222
$this->registerPacket(
new
CompressedBiomeDefinitionListPacket
());
223
$this->registerPacket(
new
TrimDataPacket
());
224
$this->registerPacket(
new
OpenSignPacket
());
225
$this->registerPacket(
new
AgentAnimationPacket
());
226
$this->registerPacket(
new
RefreshEntitlementsPacket
());
227
$this->registerPacket(
new
PlayerToggleCrafterSlotRequestPacket
());
228
$this->registerPacket(
new
SetPlayerInventoryOptionsPacket
());
229
$this->registerPacket(
new
SetHudPacket
());
230
$this->registerPacket(
new
AwardAchievementPacket
());
231
$this->registerPacket(
new
ClientboundCloseFormPacket
());
232
$this->registerPacket(
new
ServerboundLoadingScreenPacket
());
233
$this->registerPacket(
new
JigsawStructureDataPacket
());
234
$this->registerPacket(
new
CurrentStructureFeaturePacket
());
235
$this->registerPacket(
new
ServerboundDiagnosticsPacket
());
236
$this->registerPacket(
new
CameraAimAssistPacket
());
237
$this->registerPacket(
new
ContainerRegistryCleanupPacket
());
238
$this->registerPacket(
new
MovementEffectPacket
());
239
$this->registerPacket(
new
SetMovementAuthorityPacket
());
240
}
241
242
public
function
registerPacket(
Packet
$packet) :
void
{
243
$this->pool[$packet->pid()] = clone $packet;
244
}
245
246
public
function
getPacketById(
int
$pid) : ?
Packet
{
247
return
isset($this->pool[$pid]) ? clone $this->pool[$pid] :
null
;
248
}
249
253
public
function
getPacket
(
string
$buffer) : ?
Packet
{
254
$offset = 0;
255
return
$this->getPacketById(Binary::readUnsignedVarInt($buffer, $offset) & DataPacket::PID_MASK);
256
}
257
}
pocketmine\network\mcpe\protocol\ActorEventPacket
Definition
ActorEventPacket.php:20
pocketmine\network\mcpe\protocol\ActorPickRequestPacket
Definition
ActorPickRequestPacket.php:19
pocketmine\network\mcpe\protocol\AddActorPacket
Definition
AddActorPacket.php:25
pocketmine\network\mcpe\protocol\AddBehaviorTreePacket
Definition
AddBehaviorTreePacket.php:19
pocketmine\network\mcpe\protocol\AddItemActorPacket
Definition
AddItemActorPacket.php:22
pocketmine\network\mcpe\protocol\AddPaintingPacket
Definition
AddPaintingPacket.php:20
pocketmine\network\mcpe\protocol\AddPlayerPacket
Definition
AddPlayerPacket.php:27
pocketmine\network\mcpe\protocol\AddVolumeEntityPacket
Definition
AddVolumeEntityPacket.php:21
pocketmine\network\mcpe\protocol\AgentActionEventPacket
Definition
AgentActionEventPacket.php:23
pocketmine\network\mcpe\protocol\AgentAnimationPacket
Definition
AgentAnimationPacket.php:19
pocketmine\network\mcpe\protocol\AnimateEntityPacket
Definition
AnimateEntityPacket.php:20
pocketmine\network\mcpe\protocol\AnimatePacket
Definition
AnimatePacket.php:19
pocketmine\network\mcpe\protocol\AnvilDamagePacket
Definition
AnvilDamagePacket.php:20
pocketmine\network\mcpe\protocol\AutomationClientConnectPacket
Definition
AutomationClientConnectPacket.php:19
pocketmine\network\mcpe\protocol\AvailableActorIdentifiersPacket
Definition
AvailableActorIdentifiersPacket.php:20
pocketmine\network\mcpe\protocol\AvailableCommandsPacket
Definition
AvailableCommandsPacket.php:31
pocketmine\network\mcpe\protocol\AwardAchievementPacket
Definition
AwardAchievementPacket.php:19
pocketmine\network\mcpe\protocol\BiomeDefinitionListPacket
Definition
BiomeDefinitionListPacket.php:20
pocketmine\network\mcpe\protocol\BlockActorDataPacket
Definition
BlockActorDataPacket.php:21
pocketmine\network\mcpe\protocol\BlockEventPacket
Definition
BlockEventPacket.php:20
pocketmine\network\mcpe\protocol\BlockPickRequestPacket
Definition
BlockPickRequestPacket.php:20
pocketmine\network\mcpe\protocol\BookEditPacket
Definition
BookEditPacket.php:19
pocketmine\network\mcpe\protocol\BossEventPacket
Definition
BossEventPacket.php:20
pocketmine\network\mcpe\protocol\CameraAimAssistPacket
Definition
CameraAimAssistPacket.php:22
pocketmine\network\mcpe\protocol\CameraInstructionPacket
Definition
CameraInstructionPacket.php:22
pocketmine\network\mcpe\protocol\CameraPacket
Definition
CameraPacket.php:19
pocketmine\network\mcpe\protocol\CameraPresetsPacket
Definition
CameraPresetsPacket.php:21
pocketmine\network\mcpe\protocol\CameraShakePacket
Definition
CameraShakePacket.php:19
pocketmine\network\mcpe\protocol\ChangeDimensionPacket
Definition
ChangeDimensionPacket.php:20
pocketmine\network\mcpe\protocol\ChangeMobPropertyPacket
Definition
ChangeMobPropertyPacket.php:23
pocketmine\network\mcpe\protocol\ChunkRadiusUpdatedPacket
Definition
ChunkRadiusUpdatedPacket.php:19
pocketmine\network\mcpe\protocol\ClientCacheBlobStatusPacket
Definition
ClientCacheBlobStatusPacket.php:20
pocketmine\network\mcpe\protocol\ClientCacheMissResponsePacket
Definition
ClientCacheMissResponsePacket.php:21
pocketmine\network\mcpe\protocol\ClientCacheStatusPacket
Definition
ClientCacheStatusPacket.php:19
pocketmine\network\mcpe\protocol\ClientToServerHandshakePacket
Definition
ClientToServerHandshakePacket.php:19
pocketmine\network\mcpe\protocol\ClientboundCloseFormPacket
Definition
ClientboundCloseFormPacket.php:19
pocketmine\network\mcpe\protocol\ClientboundDebugRendererPacket
Definition
ClientboundDebugRendererPacket.php:20
pocketmine\network\mcpe\protocol\ClientboundMapItemDataPacket
Definition
ClientboundMapItemDataPacket.php:27
pocketmine\network\mcpe\protocol\CodeBuilderPacket
Definition
CodeBuilderPacket.php:19
pocketmine\network\mcpe\protocol\CodeBuilderSourcePacket
Definition
CodeBuilderSourcePacket.php:19
pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket
Definition
CommandBlockUpdatePacket.php:20
pocketmine\network\mcpe\protocol\CommandOutputPacket
Definition
CommandOutputPacket.php:23
pocketmine\network\mcpe\protocol\CommandRequestPacket
Definition
CommandRequestPacket.php:20
pocketmine\network\mcpe\protocol\CompletedUsingItemPacket
Definition
CompletedUsingItemPacket.php:19
pocketmine\network\mcpe\protocol\CompressedBiomeDefinitionListPacket
Definition
CompressedBiomeDefinitionListPacket.php:29
pocketmine\network\mcpe\protocol\ContainerClosePacket
Definition
ContainerClosePacket.php:19
pocketmine\network\mcpe\protocol\ContainerOpenPacket
Definition
ContainerOpenPacket.php:20
pocketmine\network\mcpe\protocol\ContainerRegistryCleanupPacket
Definition
ContainerRegistryCleanupPacket.php:21
pocketmine\network\mcpe\protocol\ContainerSetDataPacket
Definition
ContainerSetDataPacket.php:19
pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket
Definition
CorrectPlayerMovePredictionPacket.php:21
pocketmine\network\mcpe\protocol\CraftingDataPacket
Definition
CraftingDataPacket.php:31
pocketmine\network\mcpe\protocol\CreatePhotoPacket
Definition
CreatePhotoPacket.php:19
pocketmine\network\mcpe\protocol\CreativeContentPacket
Definition
CreativeContentPacket.php:21
pocketmine\network\mcpe\protocol\CurrentStructureFeaturePacket
Definition
CurrentStructureFeaturePacket.php:19
pocketmine\network\mcpe\protocol\DeathInfoPacket
Definition
DeathInfoPacket.php:23
pocketmine\network\mcpe\protocol\DebugInfoPacket
Definition
DebugInfoPacket.php:19
pocketmine\network\mcpe\protocol\DimensionDataPacket
Definition
DimensionDataPacket.php:25
pocketmine\network\mcpe\protocol\DisconnectPacket
Definition
DisconnectPacket.php:19
pocketmine\network\mcpe\protocol\EditorNetworkPacket
Definition
EditorNetworkPacket.php:23
pocketmine\network\mcpe\protocol\EduUriResourcePacket
Definition
EduUriResourcePacket.php:20
pocketmine\network\mcpe\protocol\EducationSettingsPacket
Definition
EducationSettingsPacket.php:21
pocketmine\network\mcpe\protocol\EmoteListPacket
Definition
EmoteListPacket.php:21
pocketmine\network\mcpe\protocol\EmotePacket
Definition
EmotePacket.php:19
pocketmine\network\mcpe\protocol\FeatureRegistryPacket
Definition
FeatureRegistryPacket.php:24
pocketmine\network\mcpe\protocol\GameRulesChangedPacket
Definition
GameRulesChangedPacket.php:20
pocketmine\network\mcpe\protocol\GameTestRequestPacket
Definition
GameTestRequestPacket.php:20
pocketmine\network\mcpe\protocol\GameTestResultsPacket
Definition
GameTestResultsPacket.php:19
pocketmine\network\mcpe\protocol\GuiDataPickItemPacket
Definition
GuiDataPickItemPacket.php:19
pocketmine\network\mcpe\protocol\HurtArmorPacket
Definition
HurtArmorPacket.php:19
pocketmine\network\mcpe\protocol\InteractPacket
Definition
InteractPacket.php:19
pocketmine\network\mcpe\protocol\InventoryContentPacket
Definition
InventoryContentPacket.php:22
pocketmine\network\mcpe\protocol\InventorySlotPacket
Definition
InventorySlotPacket.php:21
pocketmine\network\mcpe\protocol\InventoryTransactionPacket
Definition
InventoryTransactionPacket.php:30
pocketmine\network\mcpe\protocol\ItemComponentPacket
Definition
ItemComponentPacket.php:22
pocketmine\network\mcpe\protocol\ItemStackRequestPacket
Definition
ItemStackRequestPacket.php:21
pocketmine\network\mcpe\protocol\ItemStackResponsePacket
Definition
ItemStackResponsePacket.php:21
pocketmine\network\mcpe\protocol\JigsawStructureDataPacket
Definition
JigsawStructureDataPacket.php:20
pocketmine\network\mcpe\protocol\LabTablePacket
Definition
LabTablePacket.php:20
pocketmine\network\mcpe\protocol\LecternUpdatePacket
Definition
LecternUpdatePacket.php:20
pocketmine\network\mcpe\protocol\LegacyTelemetryEventPacket
Definition
LegacyTelemetryEventPacket.php:19
pocketmine\network\mcpe\protocol\LessonProgressPacket
Definition
LessonProgressPacket.php:22
pocketmine\network\mcpe\protocol\LevelChunkPacket
Definition
LevelChunkPacket.php:24
pocketmine\network\mcpe\protocol\LevelEventGenericPacket
Definition
LevelEventGenericPacket.php:23
pocketmine\network\mcpe\protocol\LevelEventPacket
Definition
LevelEventPacket.php:21
pocketmine\network\mcpe\protocol\LevelSoundEventPacket
Definition
LevelSoundEventPacket.php:21
pocketmine\network\mcpe\protocol\LevelSoundEventPacketV1
Definition
LevelSoundEventPacketV1.php:23
pocketmine\network\mcpe\protocol\LevelSoundEventPacketV2
Definition
LevelSoundEventPacketV2.php:23
pocketmine\network\mcpe\protocol\LoginPacket
Definition
LoginPacket.php:28
pocketmine\network\mcpe\protocol\MapCreateLockedCopyPacket
Definition
MapCreateLockedCopyPacket.php:19
pocketmine\network\mcpe\protocol\MapInfoRequestPacket
Definition
MapInfoRequestPacket.php:22
pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket
Definition
MobArmorEquipmentPacket.php:20
pocketmine\network\mcpe\protocol\MobEffectPacket
Definition
MobEffectPacket.php:19
pocketmine\network\mcpe\protocol\MobEquipmentPacket
Definition
MobEquipmentPacket.php:20
pocketmine\network\mcpe\protocol\ModalFormRequestPacket
Definition
ModalFormRequestPacket.php:19
pocketmine\network\mcpe\protocol\ModalFormResponsePacket
Definition
ModalFormResponsePacket.php:19
pocketmine\network\mcpe\protocol\MotionPredictionHintsPacket
Definition
MotionPredictionHintsPacket.php:20
pocketmine\network\mcpe\protocol\MoveActorAbsolutePacket
Definition
MoveActorAbsolutePacket.php:20
pocketmine\network\mcpe\protocol\MoveActorDeltaPacket
Definition
MoveActorDeltaPacket.php:20
pocketmine\network\mcpe\protocol\MovePlayerPacket
Definition
MovePlayerPacket.php:20
pocketmine\network\mcpe\protocol\MovementEffectPacket
Definition
MovementEffectPacket.php:20
pocketmine\network\mcpe\protocol\MultiplayerSettingsPacket
Definition
MultiplayerSettingsPacket.php:19
pocketmine\network\mcpe\protocol\NetworkChunkPublisherUpdatePacket
Definition
NetworkChunkPublisherUpdatePacket.php:22
pocketmine\network\mcpe\protocol\NetworkSettingsPacket
Definition
NetworkSettingsPacket.php:25
pocketmine\network\mcpe\protocol\NetworkStackLatencyPacket
Definition
NetworkStackLatencyPacket.php:19
pocketmine\network\mcpe\protocol\NpcDialoguePacket
Definition
NpcDialoguePacket.php:19
pocketmine\network\mcpe\protocol\NpcRequestPacket
Definition
NpcRequestPacket.php:19
pocketmine\network\mcpe\protocol\OnScreenTextureAnimationPacket
Definition
OnScreenTextureAnimationPacket.php:19
pocketmine\network\mcpe\protocol\OpenSignPacket
Definition
OpenSignPacket.php:23
pocketmine\network\mcpe\protocol\PacketPool
Definition
PacketPool.php:20
pocketmine\network\mcpe\protocol\PacketPool\getPacket
getPacket(string $buffer)
Definition
PacketPool.php:253
pocketmine\network\mcpe\protocol\PacketViolationWarningPacket
Definition
PacketViolationWarningPacket.php:19
pocketmine\network\mcpe\protocol\PassengerJumpPacket
Definition
PassengerJumpPacket.php:19
pocketmine\network\mcpe\protocol\PhotoTransferPacket
Definition
PhotoTransferPacket.php:19
pocketmine\network\mcpe\protocol\PlaySoundPacket
Definition
PlaySoundPacket.php:20
pocketmine\network\mcpe\protocol\PlayStatusPacket
Definition
PlayStatusPacket.php:19
pocketmine\network\mcpe\protocol\PlayerActionPacket
Definition
PlayerActionPacket.php:21
pocketmine\network\mcpe\protocol\PlayerArmorDamagePacket
Definition
PlayerArmorDamagePacket.php:19
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket
Definition
PlayerAuthInputPacket.php:32
pocketmine\network\mcpe\protocol\PlayerEnchantOptionsPacket
Definition
PlayerEnchantOptionsPacket.php:21
pocketmine\network\mcpe\protocol\PlayerFogPacket
Definition
PlayerFogPacket.php:20
pocketmine\network\mcpe\protocol\PlayerHotbarPacket
Definition
PlayerHotbarPacket.php:20
pocketmine\network\mcpe\protocol\PlayerInputPacket
Definition
PlayerInputPacket.php:19
pocketmine\network\mcpe\protocol\PlayerListPacket
Definition
PlayerListPacket.php:21
pocketmine\network\mcpe\protocol\PlayerSkinPacket
Definition
PlayerSkinPacket.php:21
pocketmine\network\mcpe\protocol\PlayerStartItemCooldownPacket
Definition
PlayerStartItemCooldownPacket.php:19
pocketmine\network\mcpe\protocol\PlayerToggleCrafterSlotRequestPacket
Definition
PlayerToggleCrafterSlotRequestPacket.php:20
pocketmine\network\mcpe\protocol\PositionTrackingDBClientRequestPacket
Definition
PositionTrackingDBClientRequestPacket.php:19
pocketmine\network\mcpe\protocol\PositionTrackingDBServerBroadcastPacket
Definition
PositionTrackingDBServerBroadcastPacket.php:20
pocketmine\network\mcpe\protocol\PurchaseReceiptPacket
Definition
PurchaseReceiptPacket.php:20
pocketmine\network\mcpe\protocol\RefreshEntitlementsPacket
Definition
RefreshEntitlementsPacket.php:19
pocketmine\network\mcpe\protocol\RemoveActorPacket
Definition
RemoveActorPacket.php:19
pocketmine\network\mcpe\protocol\RemoveObjectivePacket
Definition
RemoveObjectivePacket.php:19
pocketmine\network\mcpe\protocol\RemoveVolumeEntityPacket
Definition
RemoveVolumeEntityPacket.php:19
pocketmine\network\mcpe\protocol\RequestAbilityPacket
Definition
RequestAbilityPacket.php:26
pocketmine\network\mcpe\protocol\RequestChunkRadiusPacket
Definition
RequestChunkRadiusPacket.php:19
pocketmine\network\mcpe\protocol\RequestNetworkSettingsPacket
Definition
RequestNetworkSettingsPacket.php:24
pocketmine\network\mcpe\protocol\RequestPermissionsPacket
Definition
RequestPermissionsPacket.php:24
pocketmine\network\mcpe\protocol\ResourcePackChunkDataPacket
Definition
ResourcePackChunkDataPacket.php:19
pocketmine\network\mcpe\protocol\ResourcePackChunkRequestPacket
Definition
ResourcePackChunkRequestPacket.php:19
pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket
Definition
ResourcePackClientResponsePacket.php:20
pocketmine\network\mcpe\protocol\ResourcePackDataInfoPacket
Definition
ResourcePackDataInfoPacket.php:20
pocketmine\network\mcpe\protocol\ResourcePackStackPacket
Definition
ResourcePackStackPacket.php:22
pocketmine\network\mcpe\protocol\ResourcePacksInfoPacket
Definition
ResourcePacksInfoPacket.php:21
pocketmine\network\mcpe\protocol\RespawnPacket
Definition
RespawnPacket.php:20
pocketmine\network\mcpe\protocol\ScriptMessagePacket
Definition
ScriptMessagePacket.php:19
pocketmine\network\mcpe\protocol\ServerPlayerPostMovePositionPacket
Definition
ServerPlayerPostMovePositionPacket.php:20
pocketmine\network\mcpe\protocol\ServerSettingsRequestPacket
Definition
ServerSettingsRequestPacket.php:19
pocketmine\network\mcpe\protocol\ServerSettingsResponsePacket
Definition
ServerSettingsResponsePacket.php:19
pocketmine\network\mcpe\protocol\ServerStatsPacket
Definition
ServerStatsPacket.php:23
pocketmine\network\mcpe\protocol\ServerToClientHandshakePacket
Definition
ServerToClientHandshakePacket.php:19
pocketmine\network\mcpe\protocol\ServerboundDiagnosticsPacket
Definition
ServerboundDiagnosticsPacket.php:19
pocketmine\network\mcpe\protocol\ServerboundLoadingScreenPacket
Definition
ServerboundLoadingScreenPacket.php:20
pocketmine\network\mcpe\protocol\SetActorDataPacket
Definition
SetActorDataPacket.php:21
pocketmine\network\mcpe\protocol\SetActorLinkPacket
Definition
SetActorLinkPacket.php:20
pocketmine\network\mcpe\protocol\SetActorMotionPacket
Definition
SetActorMotionPacket.php:20
pocketmine\network\mcpe\protocol\SetCommandsEnabledPacket
Definition
SetCommandsEnabledPacket.php:19
pocketmine\network\mcpe\protocol\SetDefaultGameTypePacket
Definition
SetDefaultGameTypePacket.php:19
pocketmine\network\mcpe\protocol\SetDifficultyPacket
Definition
SetDifficultyPacket.php:19
pocketmine\network\mcpe\protocol\SetDisplayObjectivePacket
Definition
SetDisplayObjectivePacket.php:19
pocketmine\network\mcpe\protocol\SetHealthPacket
Definition
SetHealthPacket.php:19
pocketmine\network\mcpe\protocol\SetHudPacket
Definition
SetHudPacket.php:22
pocketmine\network\mcpe\protocol\SetLastHurtByPacket
Definition
SetLastHurtByPacket.php:19
pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket
Definition
SetLocalPlayerAsInitializedPacket.php:19
pocketmine\network\mcpe\protocol\SetMovementAuthorityPacket
Definition
SetMovementAuthorityPacket.php:20
pocketmine\network\mcpe\protocol\SetPlayerGameTypePacket
Definition
SetPlayerGameTypePacket.php:19
pocketmine\network\mcpe\protocol\SetPlayerInventoryOptionsPacket
Definition
SetPlayerInventoryOptionsPacket.php:22
pocketmine\network\mcpe\protocol\SetScorePacket
Definition
SetScorePacket.php:21
pocketmine\network\mcpe\protocol\SetScoreboardIdentityPacket
Definition
SetScoreboardIdentityPacket.php:21
pocketmine\network\mcpe\protocol\SetSpawnPositionPacket
Definition
SetSpawnPositionPacket.php:21
pocketmine\network\mcpe\protocol\SetTimePacket
Definition
SetTimePacket.php:19
pocketmine\network\mcpe\protocol\SetTitlePacket
Definition
SetTitlePacket.php:19
pocketmine\network\mcpe\protocol\SettingsCommandPacket
Definition
SettingsCommandPacket.php:19
pocketmine\network\mcpe\protocol\ShowCreditsPacket
Definition
ShowCreditsPacket.php:19
pocketmine\network\mcpe\protocol\ShowProfilePacket
Definition
ShowProfilePacket.php:19
pocketmine\network\mcpe\protocol\ShowStoreOfferPacket
Definition
ShowStoreOfferPacket.php:20
pocketmine\network\mcpe\protocol\SimpleEventPacket
Definition
SimpleEventPacket.php:19
pocketmine\network\mcpe\protocol\SimulationTypePacket
Definition
SimulationTypePacket.php:19
pocketmine\network\mcpe\protocol\SpawnExperienceOrbPacket
Definition
SpawnExperienceOrbPacket.php:20
pocketmine\network\mcpe\protocol\SpawnParticleEffectPacket
Definition
SpawnParticleEffectPacket.php:21
pocketmine\network\mcpe\protocol\StartGamePacket
Definition
StartGamePacket.php:29
pocketmine\network\mcpe\protocol\StopSoundPacket
Definition
StopSoundPacket.php:19
pocketmine\network\mcpe\protocol\StructureBlockUpdatePacket
Definition
StructureBlockUpdatePacket.php:21
pocketmine\network\mcpe\protocol\StructureTemplateDataRequestPacket
Definition
StructureTemplateDataRequestPacket.php:21
pocketmine\network\mcpe\protocol\StructureTemplateDataResponsePacket
Definition
StructureTemplateDataResponsePacket.php:20
pocketmine\network\mcpe\protocol\SubChunkPacket
Definition
SubChunkPacket.php:25
pocketmine\network\mcpe\protocol\SubChunkRequestPacket
Definition
SubChunkRequestPacket.php:22
pocketmine\network\mcpe\protocol\SubClientLoginPacket
Definition
SubClientLoginPacket.php:19
pocketmine\network\mcpe\protocol\SyncActorPropertyPacket
Definition
SyncActorPropertyPacket.php:20
pocketmine\network\mcpe\protocol\TakeItemActorPacket
Definition
TakeItemActorPacket.php:19
pocketmine\network\mcpe\protocol\TextPacket
Definition
TextPacket.php:20
pocketmine\network\mcpe\protocol\TickingAreasLoadStatusPacket
Definition
TickingAreasLoadStatusPacket.php:19
pocketmine\network\mcpe\protocol\ToastRequestPacket
Definition
ToastRequestPacket.php:23
pocketmine\network\mcpe\protocol\TransferPacket
Definition
TransferPacket.php:19
pocketmine\network\mcpe\protocol\TrimDataPacket
Definition
TrimDataPacket.php:22
pocketmine\network\mcpe\protocol\UnlockedRecipesPacket
Definition
UnlockedRecipesPacket.php:20
pocketmine\network\mcpe\protocol\UpdateAbilitiesPacket
Definition
UpdateAbilitiesPacket.php:24
pocketmine\network\mcpe\protocol\UpdateAdventureSettingsPacket
Definition
UpdateAdventureSettingsPacket.php:25
pocketmine\network\mcpe\protocol\UpdateAttributesPacket
Definition
UpdateAttributesPacket.php:21
pocketmine\network\mcpe\protocol\UpdateBlockPacket
Definition
UpdateBlockPacket.php:20
pocketmine\network\mcpe\protocol\UpdateBlockSyncedPacket
Definition
UpdateBlockSyncedPacket.php:19
pocketmine\network\mcpe\protocol\UpdateClientInputLocksPacket
Definition
UpdateClientInputLocksPacket.php:20
pocketmine\network\mcpe\protocol\UpdateEquipPacket
Definition
UpdateEquipPacket.php:20
pocketmine\network\mcpe\protocol\UpdatePlayerGameTypePacket
Definition
UpdatePlayerGameTypePacket.php:20
pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket
Definition
UpdateSoftEnumPacket.php:20
pocketmine\network\mcpe\protocol\UpdateSubChunkBlocksPacket
Definition
UpdateSubChunkBlocksPacket.php:22
pocketmine\network\mcpe\protocol\UpdateTradePacket
Definition
UpdateTradePacket.php:21
pocketmine\utils\BinaryDataException
Definition
BinaryDataException.php:26
pocketmine\utils\Binary
Definition
Binary.php:41
pocketmine\network\mcpe\protocol\Packet
Definition
bedrock-protocol/src/Packet.php:19
vendor
pocketmine
bedrock-protocol
src
PacketPool.php
Generated by
1.12.0