mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
added red sandstone and red sandstone stairs
This commit is contained in:
parent
d2dc49cd9c
commit
5c92c8a9d3
@ -248,8 +248,8 @@ class BlockFactory{
|
|||||||
//TODO: STANDING_BANNER
|
//TODO: STANDING_BANNER
|
||||||
//TODO: WALL_BANNER
|
//TODO: WALL_BANNER
|
||||||
//TODO: DAYLIGHT_DETECTOR_INVERTED
|
//TODO: DAYLIGHT_DETECTOR_INVERTED
|
||||||
//TODO: RED_SANDSTONE
|
self::registerBlock(new RedSandstone());
|
||||||
//TODO: RED_SANDSTONE_STAIRS
|
self::registerBlock(new RedSandstoneStairs());
|
||||||
self::registerBlock(new DoubleStoneSlab2());
|
self::registerBlock(new DoubleStoneSlab2());
|
||||||
self::registerBlock(new StoneSlab2());
|
self::registerBlock(new StoneSlab2());
|
||||||
self::registerBlock(new FenceGate(Block::SPRUCE_FENCE_GATE, 0, "Spruce Fence Gate"));
|
self::registerBlock(new FenceGate(Block::SPRUCE_FENCE_GATE, 0, "Spruce Fence Gate"));
|
||||||
|
37
src/pocketmine/block/RedSandstone.php
Normal file
37
src/pocketmine/block/RedSandstone.php
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?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 PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
class RedSandstone extends Sandstone{
|
||||||
|
protected $id = self::RED_SANDSTONE;
|
||||||
|
|
||||||
|
public function getName() : string{
|
||||||
|
static $names = [
|
||||||
|
self::NORMAL => "Red Sandstone",
|
||||||
|
self::CHISELED => "Chiseled Red Sandstone",
|
||||||
|
self::SMOOTH => "Smooth Red Sandstone"
|
||||||
|
];
|
||||||
|
return $names[$this->getVariant()] ?? "Unknown";
|
||||||
|
}
|
||||||
|
}
|
34
src/pocketmine/block/RedSandstoneStairs.php
Normal file
34
src/pocketmine/block/RedSandstoneStairs.php
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?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 PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
class RedSandstoneStairs extends SandstoneStairs{
|
||||||
|
|
||||||
|
protected $id = self::RED_SANDSTONE_STAIRS;
|
||||||
|
|
||||||
|
public function getName() : string{
|
||||||
|
return "Red " . parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user