Implement hard glass & hard glass pane

This commit is contained in:
Dylan K. Taylor 2019-02-18 10:49:17 +00:00
parent ab58d46a7f
commit cd733c658b
3 changed files with 66 additions and 4 deletions

View File

@ -171,6 +171,8 @@ class BlockFactory{
self::registerBlock(new GrassPath());
self::registerBlock(new Gravel());
self::registerBlock(new HardenedClay(Block::HARDENED_CLAY, 0, "Hardened Clay"));
self::registerBlock(new HardenedGlass(Block::HARD_GLASS, 0, "Hardened Glass"));
self::registerBlock(new HardenedGlassPane(Block::HARD_GLASS_PANE, 0, "Hardened Glass Pane"));
self::registerBlock(new HayBale());
self::registerBlock(new Ice());
self::registerBlock(new InfoUpdate(Block::INFO_UPDATE, 0, "update!"));
@ -334,6 +336,8 @@ class BlockFactory{
self::registerBlock(new Glass(Block::STAINED_GLASS, $color->getMagicNumber(), $color->getDisplayName() . " Stained Glass"));
self::registerBlock(new GlassPane(Block::STAINED_GLASS_PANE, $color->getMagicNumber(), $color->getDisplayName() . " Stained Glass Pane"));
self::registerBlock(new HardenedClay(Block::STAINED_CLAY, $color->getMagicNumber(), $color->getDisplayName() . " Stained Clay"));
self::registerBlock(new HardenedGlass(Block::HARD_STAINED_GLASS, $color->getMagicNumber(), "Hardened " . $color->getDisplayName() . " Stained Glass"));
self::registerBlock(new HardenedGlassPane(Block::HARD_STAINED_GLASS_PANE, $color->getMagicNumber(), "Hardened " . $color->getDisplayName() . " Stained Glass Pane"));
self::registerBlock(new Wool(Block::WOOL, $color->getMagicNumber(), $color->getDisplayName() . " Wool"));
}
@ -444,10 +448,6 @@ class BlockFactory{
//TODO: minecraft:frosted_ice
//TODO: minecraft:granite_stairs
//TODO: minecraft:grindstone
//TODO: minecraft:hard_glass
//TODO: minecraft:hard_glass_pane
//TODO: minecraft:hard_stained_glass
//TODO: minecraft:hard_stained_glass_pane
//TODO: minecraft:hopper
//TODO: minecraft:jukebox
//TODO: minecraft:jungle_button

View File

@ -0,0 +1,31 @@
<?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 HardenedGlass extends Transparent{
public function getHardness() : float{
return 10;
}
}

View File

@ -0,0 +1,31 @@
<?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 HardenedGlassPane extends Thin{
public function getHardness() : float{
return 10;
}
}