EndPortal meta and Endstone breaktime

This commit is contained in:
Intyre
2014-08-21 19:26:41 +02:00
parent 532b12c6c0
commit ecc9e1d223
2 changed files with 19 additions and 2 deletions

View File

@ -28,4 +28,21 @@ class EndStone extends Solid{
parent::__construct(self::END_STONE, 0, "End Stone");
$this->hardness = 45;
}
public function getBreakTime(Item $item){
switch($item->isPickaxe()){
case 5:
return 0.6;
case 4:
return 0.75;
case 3:
return 1.15;
case 2:
return 0.4;
case 1:
return 2.25;
default:
return 15;
}
}
}