Flatten still liquid blocks into a liquid block property

This commit is contained in:
Dylan K. Taylor
2018-11-30 16:06:35 +00:00
parent ed531c0009
commit a2253e9e7d
6 changed files with 39 additions and 100 deletions

View File

@ -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;
}