added some nullable and void typehints to Block API

This commit is contained in:
Dylan K. Taylor
2017-10-11 18:32:53 +01:00
parent 8f0ee84277
commit d8b1757ebc
36 changed files with 53 additions and 48 deletions

View File

@ -66,7 +66,7 @@ class ConcretePowder extends Fallable{
/**
* @return null|Block
*/
private function checkAdjacentWater(){
private function checkAdjacentWater() : ?Block{
for($i = 1; $i < 6; ++$i){ //Do not check underneath
if($this->getSide($i) instanceof Water){
return Block::get(Block::CONCRETE, $this->meta);