mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 15:59: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.
|
||||
* @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{
|
||||
$list = [];
|
||||
|
@ -102,7 +102,7 @@ class LoginPacket extends DataPacket{
|
||||
* @param string $name
|
||||
* @param $data
|
||||
*
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws BadPacketException
|
||||
*/
|
||||
private static function validate(Validator $v, string $name, $data) : void{
|
||||
$result = $v->validate($data);
|
||||
@ -116,7 +116,7 @@ class LoginPacket extends DataPacket{
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \OutOfBoundsException
|
||||
* @throws BadPacketException
|
||||
* @throws \UnexpectedValueException
|
||||
*/
|
||||
protected function decodeConnectionRequest() : void{
|
||||
|
@ -97,7 +97,7 @@ class NetworkInventoryAction{
|
||||
*
|
||||
* @return $this
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws \OutOfBoundsException
|
||||
* @throws BadPacketException
|
||||
*/
|
||||
public function read(NetworkBinaryStream $packet) : NetworkInventoryAction{
|
||||
$this->sourceType = $packet->getUnsignedVarInt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user