mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Fixed some doc comments
This commit is contained in:
parent
23269da1a6
commit
c9c6a5dc94
@ -249,7 +249,7 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
* Reads a list of Attributes from the stream.
|
* Reads a list of Attributes from the stream.
|
||||||
* @return Attribute[]
|
* @return Attribute[]
|
||||||
*
|
*
|
||||||
* @throws \UnexpectedValueException if reading an attribute with an unrecognized name
|
* @throws BinaryDataException if reading an attribute with an unrecognized name
|
||||||
*/
|
*/
|
||||||
public function getAttributeList() : array{
|
public function getAttributeList() : array{
|
||||||
$list = [];
|
$list = [];
|
||||||
|
@ -102,7 +102,7 @@ class LoginPacket extends DataPacket{
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
* @param $data
|
* @param $data
|
||||||
*
|
*
|
||||||
* @throws \UnexpectedValueException
|
* @throws BadPacketException
|
||||||
*/
|
*/
|
||||||
private static function validate(Validator $v, string $name, $data) : void{
|
private static function validate(Validator $v, string $name, $data) : void{
|
||||||
$result = $v->validate($data);
|
$result = $v->validate($data);
|
||||||
@ -116,7 +116,7 @@ class LoginPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws \OutOfBoundsException
|
* @throws BadPacketException
|
||||||
* @throws \UnexpectedValueException
|
* @throws \UnexpectedValueException
|
||||||
*/
|
*/
|
||||||
protected function decodeConnectionRequest() : void{
|
protected function decodeConnectionRequest() : void{
|
||||||
|
@ -97,7 +97,7 @@ class NetworkInventoryAction{
|
|||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
* @throws \UnexpectedValueException
|
* @throws \UnexpectedValueException
|
||||||
* @throws \OutOfBoundsException
|
* @throws BadPacketException
|
||||||
*/
|
*/
|
||||||
public function read(NetworkBinaryStream $packet) : NetworkInventoryAction{
|
public function read(NetworkBinaryStream $packet) : NetworkInventoryAction{
|
||||||
$this->sourceType = $packet->getUnsignedVarInt();
|
$this->sourceType = $packet->getUnsignedVarInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user