<?php

/*
 *               _ _
 *         /\   | | |
 *        /  \  | | |_ __ _ _   _
 *       / /\ \ | | __/ _` | | | |
 *      / ____ \| | || (_| | |_| |
 *     /_/    \_|_|\__\__,_|\__, |
 *                           __/ |
 *                          |___/
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * @author TuranicTeam
 * @link https://github.com/TuranicTeam/Altay
 *
 */

declare(strict_types=1);

namespace pocketmine\block;

use pocketmine\entity\Entity;

class Slime extends Solid{

	protected $id = self::SLIME_BLOCK;

	public function __construct(){

	}

	public function hasEntityCollision() : bool{
		return true;
	}

	public function getHardness() : float{
		return 0;
	}

	public function getName() : string{
		return "Slime Block";
	}

	public function onEntityCollideUpon(Entity $entity) : void{
		$entity->resetFallDistance();
	}
}