mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
OreType: use promoted constructo properties
This commit is contained in:
parent
0289b45202
commit
e0d6357eb7
@ -26,25 +26,12 @@ namespace pocketmine\world\generator\object;
|
|||||||
use pocketmine\block\Block;
|
use pocketmine\block\Block;
|
||||||
|
|
||||||
class OreType{
|
class OreType{
|
||||||
/** @var Block */
|
public function __construct(
|
||||||
public $material;
|
public Block $material,
|
||||||
/** @var Block */
|
public Block $replaces,
|
||||||
public $replaces;
|
public int $clusterCount,
|
||||||
/** @var int */
|
public int $clusterSize,
|
||||||
public $clusterCount;
|
public int $minHeight,
|
||||||
/** @var int */
|
public int $maxHeight
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user