edu: implement coloured and underwater torches

This commit is contained in:
Dylan K. Taylor
2019-02-18 11:37:57 +00:00
parent cd733c658b
commit b8adfd6948
4 changed files with 41 additions and 14 deletions

View File

@ -30,6 +30,10 @@ class RedstoneTorch extends Torch{
/** @var bool */
protected $lit = true;
public function __construct(){
parent::__construct(self::REDSTONE_TORCH, 0, "Redstone Torch", self::REDSTONE_TORCH);
}
public function getId() : int{
return $this->lit ? self::REDSTONE_TORCH : self::UNLIT_REDSTONE_TORCH;
}