mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Use covariant types for InventoryHolder and Container implementors
This commit is contained in:
@ -112,17 +112,11 @@ class BrewingStand extends Spawnable implements Container, Nameable{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BrewingStandInventory
|
||||
*/
|
||||
public function getInventory(){
|
||||
public function getInventory() : BrewingStandInventory{
|
||||
return $this->inventory;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BrewingStandInventory
|
||||
*/
|
||||
public function getRealInventory(){
|
||||
public function getRealInventory() : BrewingStandInventory{
|
||||
return $this->inventory;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user