OreType: use promoted constructo properties

This commit is contained in:
Dylan K. Taylor 2021-08-30 00:18:34 +01:00
parent 0289b45202
commit e0d6357eb7
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -26,25 +26,12 @@ namespace pocketmine\world\generator\object;
use pocketmine\block\Block;
class OreType{
/** @var Block */
public $material;
/** @var Block */
public $replaces;
/** @var int */
public $clusterCount;
/** @var int */
public $clusterSize;
/** @var int */
public $maxHeight;
/** @var int */
public $minHeight;
public function __construct(Block $material, Block $replaces, int $clusterCount, int $clusterSize, int $minHeight, int $maxHeight){
$this->material = $material;
$this->replaces = $replaces;
$this->clusterCount = $clusterCount;
$this->clusterSize = $clusterSize;
$this->maxHeight = $maxHeight;
$this->minHeight = $minHeight;
}
public function __construct(
public Block $material,
public Block $replaces,
public int $clusterCount,
public int $clusterSize,
public int $minHeight,
public int $maxHeight
){}
}