populate missing array value types in tile namespace

This commit is contained in:
Dylan K. Taylor 2020-01-30 21:20:42 +00:00
parent 0537c66849
commit 92a752053d
3 changed files with 7 additions and 0 deletions

View File

@ -164,6 +164,8 @@ class Banner extends Spawnable implements Nameable{
/**
* Returns the data of a pattern with the given ID.
*
* @return mixed[]
*/
public function getPatternData(int $patternId) : array{
if(!$this->patternExists($patternId)){

View File

@ -42,6 +42,9 @@ class Sign extends Spawnable{
public const TAG_TEXT_BLOB = "Text";
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
/**
* @return string[]
*/
private static function fixTextBlob(string $blob) : array{
return array_slice(array_pad(explode("\n", $blob), 4, ""), 0, 4);
}

View File

@ -115,6 +115,8 @@ abstract class Tile extends Position{
}
/**
* @param string[] $saveNames
*
* @throws \ReflectionException
*/
public static function registerTile(string $className, array $saveNames = []) : bool{