Use typed properties in block namespace

This commit is contained in:
Dylan K. Taylor
2021-05-22 23:52:31 +01:00
parent 73c229a236
commit f68b9e79e1
68 changed files with 134 additions and 246 deletions

View File

@ -28,14 +28,10 @@ use function get_class;
class BlockBreakInfo{
/** @var float */
private $hardness;
/** @var float */
private $blastResistance;
/** @var int */
private $toolType;
/** @var int */
private $toolHarvestLevel;
private float $hardness;
private float $blastResistance;
private int $toolType;
private int $toolHarvestLevel;
/**
* @param float|null $blastResistance default 5x hardness