mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +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 @@ use function floor;
|
||||
|
||||
class Skull extends Flowable{
|
||||
|
||||
protected $id = self::SKULL_BLOCK;
|
||||
|
||||
/** @var int */
|
||||
protected $facing = Facing::NORTH;
|
||||
|
||||
@ -44,10 +42,6 @@ class Skull extends Flowable{
|
||||
/** @var int */
|
||||
protected $rotation = 0; //TODO: split this into floor skull and wall skull handling
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->facing;
|
||||
}
|
||||
@ -69,10 +63,6 @@ class Skull extends Flowable{
|
||||
}
|
||||
}
|
||||
|
||||
protected function getTileClass() : ?string{
|
||||
return TileSkull::class;
|
||||
}
|
||||
|
||||
public function writeStateToWorld() : void{
|
||||
parent::writeStateToWorld();
|
||||
//extra block properties storage hack
|
||||
@ -87,10 +77,6 @@ class Skull extends Flowable{
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Mob Head";
|
||||
}
|
||||
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
//TODO: different bounds depending on attached face
|
||||
return AxisAlignedBB::one()->contract(0.25, 0, 0.25)->trim(Facing::UP, 0.5);
|
||||
|
Reference in New Issue
Block a user