Separate block break-info to a separate dynamic unit

This commit is contained in:
Dylan K. Taylor
2019-05-10 16:24:59 +01:00
parent 3be5de4570
commit 9e72bc91a2
155 changed files with 556 additions and 1295 deletions

View File

@ -31,8 +31,8 @@ use pocketmine\Player;
class WaterLily extends Flowable{
public function getHardness() : float{
return 0.6;
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.6));
}
protected function recalculateBoundingBox() : ?AxisAlignedBB{