mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Block: Clean up internal constructor inconsistencies
I don't dare look how big this commit is or how many bugs it introduced...
This commit is contained in:
@ -39,15 +39,9 @@ use function max;
|
||||
class SnowLayer extends Flowable implements Fallable{
|
||||
use FallableTrait;
|
||||
|
||||
protected $id = self::SNOW_LAYER;
|
||||
|
||||
/** @var int */
|
||||
protected $layers = 1;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->layers - 1;
|
||||
}
|
||||
@ -60,10 +54,6 @@ class SnowLayer extends Flowable implements Fallable{
|
||||
return 0b111;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Snow Layer";
|
||||
}
|
||||
|
||||
public function canBeReplaced() : bool{
|
||||
return $this->layers < 8;
|
||||
}
|
||||
|
Reference in New Issue
Block a user