PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
pocketmine\network\mcpe\handler\InGamePacketHandler Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\handler\InGamePacketHandler:
+ Collaboration diagram for pocketmine\network\mcpe\handler\InGamePacketHandler:

Public Member Functions

 __construct (private Player $player, private NetworkSession $session, private InventoryManager $inventoryManager)
 
 handleActorEvent (ActorEventPacket $packet)
 
 handleActorPickRequest (ActorPickRequestPacket $packet)
 
 handleAddActor (AddActorPacket $packet)
 
 handleAddBehaviorTree (AddBehaviorTreePacket $packet)
 
 handleAddItemActor (AddItemActorPacket $packet)
 
 handleAddPainting (AddPaintingPacket $packet)
 
 handleAddPlayer (AddPlayerPacket $packet)
 
 handleAddVolumeEntity (AddVolumeEntityPacket $packet)
 
 handleAgentActionEvent (AgentActionEventPacket $packet)
 
 handleAgentAnimation (AgentAnimationPacket $packet)
 
 handleAnimate (AnimatePacket $packet)
 
 handleAnimateEntity (AnimateEntityPacket $packet)
 
 handleAnvilDamage (AnvilDamagePacket $packet)
 
 handleAutomationClientConnect (AutomationClientConnectPacket $packet)
 
 handleAvailableActorIdentifiers (AvailableActorIdentifiersPacket $packet)
 
 handleAvailableCommands (AvailableCommandsPacket $packet)
 
 handleAwardAchievement (AwardAchievementPacket $packet)
 
 handleBiomeDefinitionList (BiomeDefinitionListPacket $packet)
 
 handleBlockActorData (BlockActorDataPacket $packet)
 
 handleBlockEvent (BlockEventPacket $packet)
 
 handleBlockPickRequest (BlockPickRequestPacket $packet)
 
 handleBookEdit (BookEditPacket $packet)
 
 handleBossEvent (BossEventPacket $packet)
 
 handleCamera (CameraPacket $packet)
 
 handleCameraInstruction (CameraInstructionPacket $packet)
 
 handleCameraPresets (CameraPresetsPacket $packet)
 
 handleCameraShake (CameraShakePacket $packet)
 
 handleChangeDimension (ChangeDimensionPacket $packet)
 
 handleChangeMobProperty (ChangeMobPropertyPacket $packet)
 
 handleChunkRadiusUpdated (ChunkRadiusUpdatedPacket $packet)
 
 handleClientboundDebugRenderer (ClientboundDebugRendererPacket $packet)
 
 handleClientboundMapItemData (ClientboundMapItemDataPacket $packet)
 
 handleClientCacheBlobStatus (ClientCacheBlobStatusPacket $packet)
 
 handleClientCacheMissResponse (ClientCacheMissResponsePacket $packet)
 
 handleClientCacheStatus (ClientCacheStatusPacket $packet)
 
 handleClientToServerHandshake (ClientToServerHandshakePacket $packet)
 
 handleCodeBuilder (CodeBuilderPacket $packet)
 
 handleCodeBuilderSource (CodeBuilderSourcePacket $packet)
 
 handleCommandBlockUpdate (CommandBlockUpdatePacket $packet)
 
 handleCommandOutput (CommandOutputPacket $packet)
 
 handleCommandRequest (CommandRequestPacket $packet)
 
 handleCompletedUsingItem (CompletedUsingItemPacket $packet)
 
 handleCompressedBiomeDefinitionList (CompressedBiomeDefinitionListPacket $packet)
 
 handleContainerClose (ContainerClosePacket $packet)
 
 handleContainerOpen (ContainerOpenPacket $packet)
 
 handleContainerSetData (ContainerSetDataPacket $packet)
 
 handleCorrectPlayerMovePrediction (CorrectPlayerMovePredictionPacket $packet)
 
 handleCraftingData (CraftingDataPacket $packet)
 
 handleCreatePhoto (CreatePhotoPacket $packet)
 
 handleCreativeContent (CreativeContentPacket $packet)
 
 handleDeathInfo (DeathInfoPacket $packet)
 
 handleDebugInfo (DebugInfoPacket $packet)
 
 handleDimensionData (DimensionDataPacket $packet)
 
 handleDisconnect (DisconnectPacket $packet)
 
 handleEditorNetwork (EditorNetworkPacket $packet)
 
 handleEducationSettings (EducationSettingsPacket $packet)
 
 handleEduUriResource (EduUriResourcePacket $packet)
 
 handleEmote (EmotePacket $packet)
 
 handleEmoteList (EmoteListPacket $packet)
 
 handleFeatureRegistry (FeatureRegistryPacket $packet)
 
 handleGameRulesChanged (GameRulesChangedPacket $packet)
 
 handleGameTestRequest (GameTestRequestPacket $packet)
 
 handleGameTestResults (GameTestResultsPacket $packet)
 
 handleGuiDataPickItem (GuiDataPickItemPacket $packet)
 
 handleHurtArmor (HurtArmorPacket $packet)
 
 handleInteract (InteractPacket $packet)
 
 handleInventoryContent (InventoryContentPacket $packet)
 
 handleInventorySlot (InventorySlotPacket $packet)
 
 handleInventoryTransaction (InventoryTransactionPacket $packet)
 
 handleItemComponent (ItemComponentPacket $packet)
 
 handleItemStackRequest (ItemStackRequestPacket $packet)
 
 handleItemStackResponse (ItemStackResponsePacket $packet)
 
 handleLabTable (LabTablePacket $packet)
 
 handleLecternUpdate (LecternUpdatePacket $packet)
 
 handleLegacyTelemetryEvent (LegacyTelemetryEventPacket $packet)
 
 handleLessonProgress (LessonProgressPacket $packet)
 
 handleLevelChunk (LevelChunkPacket $packet)
 
 handleLevelEvent (LevelEventPacket $packet)
 
 handleLevelEventGeneric (LevelEventGenericPacket $packet)
 
 handleLevelSoundEvent (LevelSoundEventPacket $packet)
 
 handleLevelSoundEventPacketV1 (LevelSoundEventPacketV1 $packet)
 
 handleLevelSoundEventPacketV2 (LevelSoundEventPacketV2 $packet)
 
 handleLogin (LoginPacket $packet)
 
 handleMapCreateLockedCopy (MapCreateLockedCopyPacket $packet)
 
 handleMapInfoRequest (MapInfoRequestPacket $packet)
 
 handleMobArmorEquipment (MobArmorEquipmentPacket $packet)
 
 handleMobEffect (MobEffectPacket $packet)
 
 handleMobEquipment (MobEquipmentPacket $packet)
 
 handleModalFormRequest (ModalFormRequestPacket $packet)
 
 handleModalFormResponse (ModalFormResponsePacket $packet)
 
 handleMotionPredictionHints (MotionPredictionHintsPacket $packet)
 
 handleMoveActorAbsolute (MoveActorAbsolutePacket $packet)
 
 handleMoveActorDelta (MoveActorDeltaPacket $packet)
 
 handleMovePlayer (MovePlayerPacket $packet)
 
 handleMultiplayerSettings (MultiplayerSettingsPacket $packet)
 
 handleNetworkChunkPublisherUpdate (NetworkChunkPublisherUpdatePacket $packet)
 
 handleNetworkSettings (NetworkSettingsPacket $packet)
 
 handleNetworkStackLatency (NetworkStackLatencyPacket $packet)
 
 handleNpcDialogue (NpcDialoguePacket $packet)
 
 handleNpcRequest (NpcRequestPacket $packet)
 
 handleOnScreenTextureAnimation (OnScreenTextureAnimationPacket $packet)
 
 handleOpenSign (OpenSignPacket $packet)
 
 handlePacketViolationWarning (PacketViolationWarningPacket $packet)
 
 handlePassengerJump (PassengerJumpPacket $packet)
 
 handlePhotoTransfer (PhotoTransferPacket $packet)
 
 handlePlayerAction (PlayerActionPacket $packet)
 
 handlePlayerArmorDamage (PlayerArmorDamagePacket $packet)
 
 handlePlayerAuthInput (PlayerAuthInputPacket $packet)
 
 handlePlayerEnchantOptions (PlayerEnchantOptionsPacket $packet)
 
 handlePlayerFog (PlayerFogPacket $packet)
 
 handlePlayerHotbar (PlayerHotbarPacket $packet)
 
 handlePlayerInput (PlayerInputPacket $packet)
 
 handlePlayerList (PlayerListPacket $packet)
 
 handlePlayerSkin (PlayerSkinPacket $packet)
 
 handlePlayerStartItemCooldown (PlayerStartItemCooldownPacket $packet)
 
 handlePlayerToggleCrafterSlotRequest (PlayerToggleCrafterSlotRequestPacket $packet)
 
 handlePlaySound (PlaySoundPacket $packet)
 
 handlePlayStatus (PlayStatusPacket $packet)
 
 handlePositionTrackingDBClientRequest (PositionTrackingDBClientRequestPacket $packet)
 
 handlePositionTrackingDBServerBroadcast (PositionTrackingDBServerBroadcastPacket $packet)
 
 handlePurchaseReceipt (PurchaseReceiptPacket $packet)
 
 handleRefreshEntitlements (RefreshEntitlementsPacket $packet)
 
 handleRemoveActor (RemoveActorPacket $packet)
 
 handleRemoveObjective (RemoveObjectivePacket $packet)
 
 handleRemoveVolumeEntity (RemoveVolumeEntityPacket $packet)
 
 handleRequestAbility (RequestAbilityPacket $packet)
 
 handleRequestChunkRadius (RequestChunkRadiusPacket $packet)
 
 handleRequestNetworkSettings (RequestNetworkSettingsPacket $packet)
 
 handleRequestPermissions (RequestPermissionsPacket $packet)
 
 handleResourcePackChunkData (ResourcePackChunkDataPacket $packet)
 
 handleResourcePackChunkRequest (ResourcePackChunkRequestPacket $packet)
 
 handleResourcePackClientResponse (ResourcePackClientResponsePacket $packet)
 
 handleResourcePackDataInfo (ResourcePackDataInfoPacket $packet)
 
 handleResourcePacksInfo (ResourcePacksInfoPacket $packet)
 
 handleResourcePackStack (ResourcePackStackPacket $packet)
 
 handleRespawn (RespawnPacket $packet)
 
 handleScriptMessage (ScriptMessagePacket $packet)
 
 handleServerPlayerPostMovePosition (ServerPlayerPostMovePositionPacket $packet)
 
 handleServerSettingsRequest (ServerSettingsRequestPacket $packet)
 
 handleServerSettingsResponse (ServerSettingsResponsePacket $packet)
 
 handleServerStats (ServerStatsPacket $packet)
 
 handleServerToClientHandshake (ServerToClientHandshakePacket $packet)
 
 handleSetActorData (SetActorDataPacket $packet)
 
 handleSetActorLink (SetActorLinkPacket $packet)
 
 handleSetActorMotion (SetActorMotionPacket $packet)
 
 handleSetCommandsEnabled (SetCommandsEnabledPacket $packet)
 
 handleSetDefaultGameType (SetDefaultGameTypePacket $packet)
 
 handleSetDifficulty (SetDifficultyPacket $packet)
 
 handleSetDisplayObjective (SetDisplayObjectivePacket $packet)
 
 handleSetHealth (SetHealthPacket $packet)
 
 handleSetHud (SetHudPacket $packet)
 
 handleSetLastHurtBy (SetLastHurtByPacket $packet)
 
 handleSetLocalPlayerAsInitialized (SetLocalPlayerAsInitializedPacket $packet)
 
 handleSetPlayerGameType (SetPlayerGameTypePacket $packet)
 
 handleSetPlayerInventoryOptions (SetPlayerInventoryOptionsPacket $packet)
 
 handleSetScore (SetScorePacket $packet)
 
 handleSetScoreboardIdentity (SetScoreboardIdentityPacket $packet)
 
 handleSetSpawnPosition (SetSpawnPositionPacket $packet)
 
 handleSetTime (SetTimePacket $packet)
 
 handleSettingsCommand (SettingsCommandPacket $packet)
 
 handleSetTitle (SetTitlePacket $packet)
 
 handleShowCredits (ShowCreditsPacket $packet)
 
 handleShowProfile (ShowProfilePacket $packet)
 
 handleShowStoreOffer (ShowStoreOfferPacket $packet)
 
 handleSimpleEvent (SimpleEventPacket $packet)
 
 handleSimulationType (SimulationTypePacket $packet)
 
 handleSpawnExperienceOrb (SpawnExperienceOrbPacket $packet)
 
 handleSpawnParticleEffect (SpawnParticleEffectPacket $packet)
 
 handleStartGame (StartGamePacket $packet)
 
 handleStopSound (StopSoundPacket $packet)
 
 handleStructureBlockUpdate (StructureBlockUpdatePacket $packet)
 
 handleStructureTemplateDataRequest (StructureTemplateDataRequestPacket $packet)
 
 handleStructureTemplateDataResponse (StructureTemplateDataResponsePacket $packet)
 
 handleSubChunk (SubChunkPacket $packet)
 
 handleSubChunkRequest (SubChunkRequestPacket $packet)
 
 handleSubClientLogin (SubClientLoginPacket $packet)
 
 handleSyncActorProperty (SyncActorPropertyPacket $packet)
 
 handleTakeItemActor (TakeItemActorPacket $packet)
 
 handleText (TextPacket $packet)
 
 handleTickingAreasLoadStatus (TickingAreasLoadStatusPacket $packet)
 
 handleToastRequest (ToastRequestPacket $packet)
 
 handleTransfer (TransferPacket $packet)
 
 handleTrimData (TrimDataPacket $packet)
 
 handleUnlockedRecipes (UnlockedRecipesPacket $packet)
 
 handleUpdateAbilities (UpdateAbilitiesPacket $packet)
 
 handleUpdateAdventureSettings (UpdateAdventureSettingsPacket $packet)
 
 handleUpdateAttributes (UpdateAttributesPacket $packet)
 
 handleUpdateBlock (UpdateBlockPacket $packet)
 
 handleUpdateBlockSynced (UpdateBlockSyncedPacket $packet)
 
 handleUpdateClientInputLocks (UpdateClientInputLocksPacket $packet)
 
 handleUpdateEquip (UpdateEquipPacket $packet)
 
 handleUpdatePlayerGameType (UpdatePlayerGameTypePacket $packet)
 
 handleUpdateSoftEnum (UpdateSoftEnumPacket $packet)
 
 handleUpdateSubChunkBlocks (UpdateSubChunkBlocksPacket $packet)
 
 handleUpdateTrade (UpdateTradePacket $packet)
 
 setUp ()
 

Public Attributes

bool $forceMoveSync = false
 

Protected Attributes

int $lastPlayerAuthInputFlags = null
 
float $lastPlayerAuthInputPitch = null
 
Vector3 $lastPlayerAuthInputPosition = null
 
float $lastPlayerAuthInputYaw = null
 
string $lastRequestedFullSkinId = null
 
UseItemTransactionData $lastRightClickData = null
 
float $lastRightClickTime = 0.0
 

Detailed Description

This handler handles packets related to general gameplay.

Definition at line 129 of file InGamePacketHandler.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\handler\InGamePacketHandler::__construct ( private Player  $player,
private NetworkSession  $session,
private InventoryManager  $inventoryManager 
)

Definition at line 144 of file InGamePacketHandler.php.

Member Function Documentation

◆ handleActorEvent()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleActorEvent ( ActorEventPacket  $packet)

◆ handleActorPickRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleActorPickRequest ( ActorPickRequestPacket  $packet)

◆ handleAnimate()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleAnimate ( AnimatePacket  $packet)

◆ handleBlockActorData()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleBlockActorData ( BlockActorDataPacket  $packet)

◆ handleBlockPickRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleBlockPickRequest ( BlockPickRequestPacket  $packet)

◆ handleBookEdit()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleBookEdit ( BookEditPacket  $packet)

◆ handleBossEvent()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleBossEvent ( BossEventPacket  $packet)

◆ handleCommandBlockUpdate()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleCommandBlockUpdate ( CommandBlockUpdatePacket  $packet)

◆ handleCommandRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleCommandRequest ( CommandRequestPacket  $packet)

◆ handleContainerClose()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleContainerClose ( ContainerClosePacket  $packet)

◆ handleEmote()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleEmote ( EmotePacket  $packet)

◆ handleInteract()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleInteract ( InteractPacket  $packet)

◆ handleInventoryTransaction()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleInventoryTransaction ( InventoryTransactionPacket  $packet)

◆ handleItemStackRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleItemStackRequest ( ItemStackRequestPacket  $packet)

◆ handleLabTable()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleLabTable ( LabTablePacket  $packet)

◆ handleLecternUpdate()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleLecternUpdate ( LecternUpdatePacket  $packet)

◆ handleLevelSoundEvent()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleLevelSoundEvent ( LevelSoundEventPacket  $packet)

◆ handleLevelSoundEventPacketV1()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleLevelSoundEventPacketV1 ( LevelSoundEventPacketV1  $packet)

◆ handleMapInfoRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleMapInfoRequest ( MapInfoRequestPacket  $packet)

◆ handleMobArmorEquipment()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleMobArmorEquipment ( MobArmorEquipmentPacket  $packet)

◆ handleMobEquipment()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleMobEquipment ( MobEquipmentPacket  $packet)

◆ handleModalFormResponse()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleModalFormResponse ( ModalFormResponsePacket  $packet)

◆ handleMovePlayer()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleMovePlayer ( MovePlayerPacket  $packet)

◆ handleNetworkStackLatency()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleNetworkStackLatency ( NetworkStackLatencyPacket  $packet)

◆ handlePlayerAction()

pocketmine\network\mcpe\handler\InGamePacketHandler::handlePlayerAction ( PlayerActionPacket  $packet)

◆ handlePlayerAuthInput()

pocketmine\network\mcpe\handler\InGamePacketHandler::handlePlayerAuthInput ( PlayerAuthInputPacket  $packet)

◆ handlePlayerHotbar()

pocketmine\network\mcpe\handler\InGamePacketHandler::handlePlayerHotbar ( PlayerHotbarPacket  $packet)

◆ handlePlayerInput()

pocketmine\network\mcpe\handler\InGamePacketHandler::handlePlayerInput ( PlayerInputPacket  $packet)

◆ handlePlayerSkin()

pocketmine\network\mcpe\handler\InGamePacketHandler::handlePlayerSkin ( PlayerSkinPacket  $packet)

◆ handleRequestChunkRadius()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleRequestChunkRadius ( RequestChunkRadiusPacket  $packet)

◆ handleServerSettingsRequest()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleServerSettingsRequest ( ServerSettingsRequestPacket  $packet)

◆ handleSetActorMotion()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleSetActorMotion ( SetActorMotionPacket  $packet)

◆ handleSetPlayerGameType()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleSetPlayerGameType ( SetPlayerGameTypePacket  $packet)

◆ handleShowCredits()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleShowCredits ( ShowCreditsPacket  $packet)

◆ handleSpawnExperienceOrb()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleSpawnExperienceOrb ( SpawnExperienceOrbPacket  $packet)

◆ handleSubClientLogin()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleSubClientLogin ( SubClientLoginPacket  $packet)

◆ handleText()

pocketmine\network\mcpe\handler\InGamePacketHandler::handleText ( TextPacket  $packet)

◆ setUp()

pocketmine\network\mcpe\handler\PacketHandler::setUp ( )
inherited

Definition at line 38 of file PacketHandler.php.

Member Data Documentation

◆ $forceMoveSync

bool pocketmine\network\mcpe\handler\InGamePacketHandler::$forceMoveSync = false

Definition at line 140 of file InGamePacketHandler.php.

◆ $lastPlayerAuthInputFlags

int pocketmine\network\mcpe\handler\InGamePacketHandler::$lastPlayerAuthInputFlags = null
protected

Definition at line 138 of file InGamePacketHandler.php.

◆ $lastPlayerAuthInputPitch

float pocketmine\network\mcpe\handler\InGamePacketHandler::$lastPlayerAuthInputPitch = null
protected

Definition at line 137 of file InGamePacketHandler.php.

◆ $lastPlayerAuthInputPosition

Vector3 pocketmine\network\mcpe\handler\InGamePacketHandler::$lastPlayerAuthInputPosition = null
protected

Definition at line 135 of file InGamePacketHandler.php.

◆ $lastPlayerAuthInputYaw

float pocketmine\network\mcpe\handler\InGamePacketHandler::$lastPlayerAuthInputYaw = null
protected

Definition at line 136 of file InGamePacketHandler.php.

◆ $lastRequestedFullSkinId

string pocketmine\network\mcpe\handler\InGamePacketHandler::$lastRequestedFullSkinId = null
protected

Definition at line 142 of file InGamePacketHandler.php.

◆ $lastRightClickData

UseItemTransactionData pocketmine\network\mcpe\handler\InGamePacketHandler::$lastRightClickData = null
protected

Definition at line 133 of file InGamePacketHandler.php.

◆ $lastRightClickTime

float pocketmine\network\mcpe\handler\InGamePacketHandler::$lastRightClickTime = 0.0
protected

Definition at line 132 of file InGamePacketHandler.php.


The documentation for this class was generated from the following file: