mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +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;
|
||||
|
||||
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
|
||||
){}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user