mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Block API typehints
This commit is contained in:
@ -28,11 +28,11 @@ use pocketmine\item\Tool;
|
||||
|
||||
class WoodenDoor extends Door{
|
||||
|
||||
public function getHardness(){
|
||||
public function getHardness() : float{
|
||||
return 3;
|
||||
}
|
||||
|
||||
public function getToolType(){
|
||||
public function getToolType() : int{
|
||||
return Tool::TYPE_AXE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user