mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Added more typehints to Tile namespace
This commit is contained in:
@ -54,7 +54,7 @@ class Sign extends Spawnable{
|
||||
parent::__construct($level, $nbt);
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
public function saveNBT() : void{
|
||||
parent::saveNBT();
|
||||
$this->namedtag->Text = new StringTag("Text", implode("\n", $this->text));
|
||||
|
||||
@ -127,7 +127,7 @@ class Sign extends Spawnable{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
public function addAdditionalSpawnData(CompoundTag $nbt){
|
||||
public function addAdditionalSpawnData(CompoundTag $nbt) : void{
|
||||
$nbt->Text = new StringTag("Text", implode("\n", $this->text));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user