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:
@ -33,15 +33,9 @@ class NetherReactor extends Solid{
|
||||
protected const STATE_ACTIVE = 1;
|
||||
protected const STATE_USED = 2;
|
||||
|
||||
protected $id = Block::NETHER_REACTOR;
|
||||
|
||||
/** @var int */
|
||||
protected $state = self::STATE_INACTIVE;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->state;
|
||||
}
|
||||
@ -54,10 +48,6 @@ class NetherReactor extends Solid{
|
||||
return 0b11;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Nether Reactor Core";
|
||||
}
|
||||
|
||||
public function getToolType() : int{
|
||||
return BlockToolType::TYPE_PICKAXE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user