Concrete and ConcretePowder colour is now dynamic

This commit is contained in:
Dylan K. Taylor
2020-10-15 14:25:15 +01:00
parent 3aca03d262
commit 0ef0848c44
7 changed files with 108 additions and 68 deletions

View File

@ -23,9 +23,11 @@ declare(strict_types=1);
namespace pocketmine\block;
use pocketmine\block\utils\ColorInMetadataTrait;
use pocketmine\item\ToolTier;
class Concrete extends Opaque{
use ColorInMetadataTrait;
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(1.8, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel()));