mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 11:27:07 +00:00
Support for 1.21.2
This commit is contained in:
parent
68d2e2915e
commit
5d60ba36b7
@ -36,7 +36,7 @@
|
|||||||
"pocketmine/bedrock-block-upgrade-schema": "~4.2.0+bedrock-1.21.0",
|
"pocketmine/bedrock-block-upgrade-schema": "~4.2.0+bedrock-1.21.0",
|
||||||
"pocketmine/bedrock-data": "~2.11.0+bedrock-1.21.0",
|
"pocketmine/bedrock-data": "~2.11.0+bedrock-1.21.0",
|
||||||
"pocketmine/bedrock-item-upgrade-schema": "~1.10.0+bedrock-1.21.0",
|
"pocketmine/bedrock-item-upgrade-schema": "~1.10.0+bedrock-1.21.0",
|
||||||
"pocketmine/bedrock-protocol": "~31.0.0+bedrock-1.21.0",
|
"pocketmine/bedrock-protocol": "~32.1.0+bedrock-1.21.2",
|
||||||
"pocketmine/binaryutils": "^0.2.1",
|
"pocketmine/binaryutils": "^0.2.1",
|
||||||
"pocketmine/callback-validator": "^1.0.2",
|
"pocketmine/callback-validator": "^1.0.2",
|
||||||
"pocketmine/color": "^0.3.0",
|
"pocketmine/color": "^0.3.0",
|
||||||
|
14
composer.lock
generated
14
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "6254ce9a454f8c9acd4936512c4d315a",
|
"content-hash": "d459605b85f247204988a879982aab50",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/json-comment",
|
"name": "adhocore/json-comment",
|
||||||
@ -205,16 +205,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pocketmine/bedrock-protocol",
|
"name": "pocketmine/bedrock-protocol",
|
||||||
"version": "31.0.0+bedrock-1.21.0",
|
"version": "32.1.0+bedrock-1.21.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/pmmp/BedrockProtocol.git",
|
"url": "https://github.com/pmmp/BedrockProtocol.git",
|
||||||
"reference": "972373b6b8068963649f0a95163424eb5b645e29"
|
"reference": "bb23db51365bdc91d3135c3885986a691ae1cb44"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/972373b6b8068963649f0a95163424eb5b645e29",
|
"url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/bb23db51365bdc91d3135c3885986a691ae1cb44",
|
||||||
"reference": "972373b6b8068963649f0a95163424eb5b645e29",
|
"reference": "bb23db51365bdc91d3135c3885986a691ae1cb44",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -245,9 +245,9 @@
|
|||||||
"description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP",
|
"description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/pmmp/BedrockProtocol/issues",
|
"issues": "https://github.com/pmmp/BedrockProtocol/issues",
|
||||||
"source": "https://github.com/pmmp/BedrockProtocol/tree/31.0.0+bedrock-1.21.0"
|
"source": "https://github.com/pmmp/BedrockProtocol/tree/32.1.0+bedrock-1.21.2"
|
||||||
},
|
},
|
||||||
"time": "2024-06-13T17:34:14+00:00"
|
"time": "2024-07-10T01:38:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pocketmine/binaryutils",
|
"name": "pocketmine/binaryutils",
|
||||||
|
@ -54,6 +54,7 @@ use pocketmine\network\mcpe\handler\SessionStartPacketHandler;
|
|||||||
use pocketmine\network\mcpe\handler\SpawnResponsePacketHandler;
|
use pocketmine\network\mcpe\handler\SpawnResponsePacketHandler;
|
||||||
use pocketmine\network\mcpe\protocol\AvailableCommandsPacket;
|
use pocketmine\network\mcpe\protocol\AvailableCommandsPacket;
|
||||||
use pocketmine\network\mcpe\protocol\ChunkRadiusUpdatedPacket;
|
use pocketmine\network\mcpe\protocol\ChunkRadiusUpdatedPacket;
|
||||||
|
use pocketmine\network\mcpe\protocol\ClientboundCloseFormPacket;
|
||||||
use pocketmine\network\mcpe\protocol\ClientboundPacket;
|
use pocketmine\network\mcpe\protocol\ClientboundPacket;
|
||||||
use pocketmine\network\mcpe\protocol\DisconnectPacket;
|
use pocketmine\network\mcpe\protocol\DisconnectPacket;
|
||||||
use pocketmine\network\mcpe\protocol\ModalFormRequestPacket;
|
use pocketmine\network\mcpe\protocol\ModalFormRequestPacket;
|
||||||
@ -1170,6 +1171,10 @@ class NetworkSession{
|
|||||||
return $this->sendDataPacket(ModalFormRequestPacket::create($id, json_encode($form, JSON_THROW_ON_ERROR)));
|
return $this->sendDataPacket(ModalFormRequestPacket::create($id, json_encode($form, JSON_THROW_ON_ERROR)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function onCloseAllForms() : void{
|
||||||
|
$this->sendDataPacket(ClientboundCloseFormPacket::create());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instructs the networksession to start using the chunk at the given coordinates. This may occur asynchronously.
|
* Instructs the networksession to start using the chunk at the given coordinates. This may occur asynchronously.
|
||||||
* @param \Closure $onCompletion To be called when chunk sending has completed.
|
* @param \Closure $onCompletion To be called when chunk sending has completed.
|
||||||
|
@ -2151,6 +2151,13 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Closes the current viewing form and forms in queue.
|
||||||
|
*/
|
||||||
|
public function closeAllForms() : void{
|
||||||
|
$this->getNetworkSession()->onCloseAllForms();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transfers a player to another server.
|
* Transfers a player to another server.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user