Added more typehints to Tile namespace

This commit is contained in:
Dylan K. Taylor
2017-10-16 16:14:44 +01:00
parent 45b003ac2e
commit 0b1a9ba062
10 changed files with 24 additions and 24 deletions

View File

@ -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));
}