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:
@ -23,18 +23,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
|
||||
class PumpkinStem extends Stem{
|
||||
|
||||
protected $id = self::PUMPKIN_STEM;
|
||||
|
||||
protected $itemId = Item::PUMPKIN_SEEDS;
|
||||
|
||||
public function getName() : string{
|
||||
return "Pumpkin Stem";
|
||||
}
|
||||
|
||||
protected function getPlant() : Block{
|
||||
return BlockFactory::get(Block::PUMPKIN);
|
||||
}
|
||||
|
Reference in New Issue
Block a user