Cleaned up fuel duration handling, fixed some fuel items not working in furnaces

This commit is contained in:
Dylan K. Taylor
2017-08-17 10:22:47 +01:00
parent dc3f13cd30
commit 6efa4343b1
30 changed files with 123 additions and 71 deletions

View File

@ -1,60 +0,0 @@
<?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\inventory;
use pocketmine\item\Item;
//TODO: remove this
abstract class Fuel{
public static $duration = [
Item::COAL => 1600,
Item::COAL_BLOCK => 16000,
Item::WOOD => 300,
Item::WOODEN_PLANKS => 300,
Item::SAPLING => 100,
Item::WOODEN_AXE => 200,
Item::WOODEN_PICKAXE => 200,
Item::WOODEN_SWORD => 200,
Item::WOODEN_SHOVEL => 200,
Item::WOODEN_HOE => 200,
Item::STICK => 100,
Item::FENCE => 300,
Item::FENCE_GATE => 300,
Item::SPRUCE_FENCE_GATE => 300,
Item::BIRCH_FENCE_GATE => 300,
Item::JUNGLE_FENCE_GATE => 300,
Item::ACACIA_FENCE_GATE => 300,
Item::DARK_OAK_FENCE_GATE => 300,
Item::WOODEN_STAIRS => 300,
Item::SPRUCE_STAIRS => 300,
Item::BIRCH_STAIRS => 300,
Item::JUNGLE_STAIRS => 300,
Item::TRAPDOOR => 300,
Item::WORKBENCH => 300,
Item::BOOKSHELF => 300,
Item::CHEST => 300,
Item::BUCKET => 20000,
];
}