mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Flatten still liquid blocks into a liquid block property
This commit is contained in:
@ -32,28 +32,14 @@ use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
|
||||
class Lava extends Liquid{
|
||||
|
||||
protected $id = self::FLOWING_LAVA;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
parent::__construct(self::FLOWING_LAVA, self::STILL_LAVA, "Lava");
|
||||
}
|
||||
|
||||
public function getLightLevel() : int{
|
||||
return 15;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Lava";
|
||||
}
|
||||
|
||||
public function getStillForm() : Block{
|
||||
return BlockFactory::get(Block::STILL_LAVA, $this->getDamage());
|
||||
}
|
||||
|
||||
public function getFlowingForm() : Block{
|
||||
return BlockFactory::get(Block::FLOWING_LAVA, $this->getDamage());
|
||||
}
|
||||
|
||||
public function getBucketFillSound() : int{
|
||||
return LevelSoundEventPacket::SOUND_BUCKET_FILL_LAVA;
|
||||
}
|
||||
|
Reference in New Issue
Block a user