mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 22:45:28 +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.
|
* Returns the data of a pattern with the given ID.
|
||||||
|
*
|
||||||
|
* @return mixed[]
|
||||||
*/
|
*/
|
||||||
public function getPatternData(int $patternId) : array{
|
public function getPatternData(int $patternId) : array{
|
||||||
if(!$this->patternExists($patternId)){
|
if(!$this->patternExists($patternId)){
|
||||||
|
@ -42,6 +42,9 @@ class Sign extends Spawnable{
|
|||||||
public const TAG_TEXT_BLOB = "Text";
|
public const TAG_TEXT_BLOB = "Text";
|
||||||
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
|
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
private static function fixTextBlob(string $blob) : array{
|
private static function fixTextBlob(string $blob) : array{
|
||||||
return array_slice(array_pad(explode("\n", $blob), 4, ""), 0, 4);
|
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
|
* @throws \ReflectionException
|
||||||
*/
|
*/
|
||||||
public static function registerTile(string $className, array $saveNames = []) : bool{
|
public static function registerTile(string $className, array $saveNames = []) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user