Block: move all legacy metadata constants into a dedicated class

this makes it easier to see what is using metadata (and makes it easier to get rid of later).
This commit is contained in:
Dylan K. Taylor
2019-05-16 16:55:44 +01:00
parent 1898db840d
commit dd914e0752
42 changed files with 443 additions and 312 deletions

View File

@ -27,11 +27,6 @@ use pocketmine\item\TieredTool;
class Sandstone extends Solid{
public const NORMAL = 0;
public const CHISELED = 1;
public const CUT = 2;
public const SMOOTH = 3;
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.8, BlockToolType::TYPE_PICKAXE, TieredTool::TIER_WOODEN));
}