Another typehint

This commit is contained in:
Dylan K. Taylor 2017-08-27 20:01:38 +01:00
parent 8b3fad8a7b
commit 697ea55fb7
12 changed files with 12 additions and 12 deletions

View File

@ -26,7 +26,7 @@ namespace pocketmine\item;
abstract class Armor extends Item{
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}
}

View File

@ -32,7 +32,7 @@ class Bed extends Item{
parent::__construct(self::BED, $meta, "Bed");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}
}

View File

@ -29,7 +29,7 @@ class BeetrootSoup extends Food{
parent::__construct(self::BEETROOT_SOUP, $meta, "Beetroot Soup");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}

View File

@ -37,7 +37,7 @@ class Bucket extends Item{
parent::__construct(self::BUCKET, $meta, "Bucket");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}

View File

@ -32,7 +32,7 @@ class Cake extends Item{
parent::__construct(self::CAKE, $meta, "Cake");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}
}

View File

@ -32,7 +32,7 @@ class IronDoor extends Item{
parent::__construct(self::IRON_DOOR, $meta, "Iron Door");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}
}

View File

@ -734,7 +734,7 @@ class Item implements ItemIds, \JsonSerializable{
* Returns the highest amount of this item which will fit into one inventory slot.
* @return int
*/
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 64;
}

View File

@ -28,7 +28,7 @@ class MushroomStew extends Food{
parent::__construct(self::MUSHROOM_STEW, $meta, "Mushroom Stew");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}

View File

@ -32,7 +32,7 @@ class Sign extends Item{
parent::__construct(self::SIGN, $meta, "Sign");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 16;
}
}

View File

@ -29,7 +29,7 @@ class Snowball extends Item{
parent::__construct(self::SNOWBALL, $meta, "Snowball");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 16;
}

View File

@ -40,7 +40,7 @@ abstract class Tool extends Item{
const TYPE_AXE = 4;
const TYPE_SHEARS = 5;
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}

View File

@ -32,7 +32,7 @@ class WoodenDoor extends Item{
parent::__construct(self::WOODEN_DOOR, $meta, "Wooden Door");
}
public function getMaxStackSize(){
public function getMaxStackSize() : int{
return 1;
}
}