Refactor Slab logic away from WoodenSlab, added StoneSlab2 and its double

This commit is contained in:
Dylan K. Taylor
2017-10-18 19:27:54 +01:00
parent f148c366f9
commit d2dc49cd9c
9 changed files with 268 additions and 147 deletions

View File

@ -26,7 +26,7 @@ namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\item\Tool;
class StoneSlab extends WoodenSlab{
class StoneSlab extends Slab{
const STONE = 0;
const SANDSTONE = 1;
const WOODEN = 2;
@ -38,7 +38,9 @@ class StoneSlab extends WoodenSlab{
protected $id = self::STONE_SLAB;
protected $doubleId = self::DOUBLE_STONE_SLAB;
public function getDoubleSlabId() : int{
return self::DOUBLE_STONE_SLAB;
}
public function getHardness() : float{
return 2;
@ -69,8 +71,4 @@ class StoneSlab extends WoodenSlab{
return [];
}
public function getFuelTime() : int{
return 0;
}
}