mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +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 Trapdoor extends Transparent{
|
||||
private const MASK_UPPER = 0x04;
|
||||
private const MASK_OPENED = 0x08;
|
||||
|
||||
protected $id = self::TRAPDOOR;
|
||||
|
||||
/** @var int */
|
||||
protected $facing = Facing::NORTH;
|
||||
/** @var bool */
|
||||
@ -44,10 +42,6 @@ class Trapdoor extends Transparent{
|
||||
/** @var bool */
|
||||
protected $top = false;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return (5 - $this->facing) | ($this->top ? self::MASK_UPPER : 0) | ($this->open ? self::MASK_OPENED : 0);
|
||||
}
|
||||
@ -64,10 +58,6 @@ class Trapdoor extends Transparent{
|
||||
return 0b1111;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Wooden Trapdoor";
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
return 3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user