mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
populate missing array value types in tile namespace
This commit is contained in:
parent
0537c66849
commit
92a752053d
@ -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)){
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -115,6 +115,8 @@ abstract class Tile extends Position{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $saveNames
|
||||
*
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public static function registerTile(string $className, array $saveNames = []) : bool{
|
||||
|
Loading…
x
Reference in New Issue
Block a user