mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Implemented blue ice
This commit is contained in:
parent
0e1a88f7e5
commit
7f4b76aa86
@ -83,6 +83,7 @@ class BlockFactory{
|
|||||||
self::register(new Bed(new BID(Block::BED_BLOCK, 0, ItemIds::BED, \pocketmine\tile\Bed::class), "Bed Block"));
|
self::register(new Bed(new BID(Block::BED_BLOCK, 0, ItemIds::BED, \pocketmine\tile\Bed::class), "Bed Block"));
|
||||||
self::register(new Bedrock(new BID(Block::BEDROCK), "Bedrock"));
|
self::register(new Bedrock(new BID(Block::BEDROCK), "Bedrock"));
|
||||||
self::register(new Beetroot(new BID(Block::BEETROOT_BLOCK), "Beetroot Block"));
|
self::register(new Beetroot(new BID(Block::BEETROOT_BLOCK), "Beetroot Block"));
|
||||||
|
self::register(new BlueIce(new BID(Block::BLUE_ICE), "Blue Ice"));
|
||||||
self::register(new BoneBlock(new BID(Block::BONE_BLOCK), "Bone Block"));
|
self::register(new BoneBlock(new BID(Block::BONE_BLOCK), "Bone Block"));
|
||||||
self::register(new Bookshelf(new BID(Block::BOOKSHELF), "Bookshelf"));
|
self::register(new Bookshelf(new BID(Block::BOOKSHELF), "Bookshelf"));
|
||||||
self::register(new BrewingStand(new BID(Block::BREWING_STAND_BLOCK, 0, ItemIds::BREWING_STAND), "Brewing Stand"));
|
self::register(new BrewingStand(new BID(Block::BREWING_STAND_BLOCK, 0, ItemIds::BREWING_STAND), "Brewing Stand"));
|
||||||
|
49
src/pocketmine/block/BlueIce.php
Normal file
49
src/pocketmine/block/BlueIce.php
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
use pocketmine\item\Item;
|
||||||
|
|
||||||
|
class BlueIce extends Solid{
|
||||||
|
|
||||||
|
public function getHardness() : float{
|
||||||
|
return 2.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getToolType() : int{
|
||||||
|
return BlockToolType::TYPE_PICKAXE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLightLevel() : int{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFrictionFactor() : float{
|
||||||
|
return 0.99;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDropsForCompatibleTool(Item $item) : array{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user