mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
populate missing array value types in root namespace
This commit is contained in:
parent
d3021c6281
commit
9eebfa7cc3
@ -119,6 +119,9 @@ abstract class Achievement{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $requires
|
||||
*/
|
||||
public static function add(string $achievementId, string $achievementName, array $requires = []) : bool{
|
||||
if(!isset(Achievement::$list[$achievementId])){
|
||||
Achievement::$list[$achievementId] = [
|
||||
|
@ -144,6 +144,9 @@ class CrashDump{
|
||||
return $this->encodedData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed[]
|
||||
*/
|
||||
public function getData() : array{
|
||||
return $this->data;
|
||||
}
|
||||
|
@ -977,6 +977,7 @@ class Server{
|
||||
* Generates a new level if it does not exist
|
||||
*
|
||||
* @param string|null $generator Class name that extends pocketmine\level\generator\Generator
|
||||
* @param mixed[] $options
|
||||
*/
|
||||
public function generateLevel(string $name, int $seed = null, $generator = null, array $options = []) : bool{
|
||||
if(trim($name) === "" or $this->isLevelGenerated($name)){
|
||||
@ -1997,7 +1998,7 @@ class Server{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|null $trace
|
||||
* @param mixed[][]|null $trace
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user