mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixup pressure plate hierarchy
This commit is contained in:
@ -25,26 +25,7 @@ namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\TieredTool;
|
||||
|
||||
class StonePressurePlate extends Transparent{
|
||||
|
||||
/** @var bool */
|
||||
protected $powered = false;
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->powered ? 1 : 0;
|
||||
}
|
||||
|
||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
||||
$this->powered = $stateMeta !== 0;
|
||||
}
|
||||
|
||||
public function getStateBitmask() : int{
|
||||
return 0b1;
|
||||
}
|
||||
|
||||
public function isSolid() : bool{
|
||||
return false;
|
||||
}
|
||||
class StonePressurePlate extends SimplePressurePlate{
|
||||
|
||||
public function getHardness() : float{
|
||||
return 0.5;
|
||||
|
Reference in New Issue
Block a user