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:
@ -35,8 +35,6 @@ class Lever extends Flowable{
|
||||
protected const SIDE = 1;
|
||||
protected const TOP = 2;
|
||||
|
||||
protected $id = self::LEVER;
|
||||
|
||||
/** @var int */
|
||||
protected $position = self::BOTTOM;
|
||||
/** @var int */
|
||||
@ -44,10 +42,6 @@ class Lever extends Flowable{
|
||||
/** @var bool */
|
||||
protected $powered = false;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
if($this->position === self::BOTTOM){
|
||||
$rotationMeta = Facing::axis($this->facing) === Facing::AXIS_Z ? 7 : 0;
|
||||
@ -79,10 +73,6 @@ class Lever extends Flowable{
|
||||
return 0b1111;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Lever";
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
return 0.5;
|
||||
}
|
||||
|
Reference in New Issue
Block a user