Renamed Item\Block to Item\ItemBlock

This commit is contained in:
Shoghi Cervantes 2014-08-28 22:28:32 +02:00
parent e2986992c7
commit be70121f3a
2 changed files with 3 additions and 4 deletions

View File

@ -27,7 +27,6 @@ namespace pocketmine\item;
use pocketmine\block\Block;
use pocketmine\entity\Entity;
use pocketmine\inventory\Fuel;
use pocketmine\item\Block as ItemBlock;
use pocketmine\level\Level;
use pocketmine\Player;

View File

@ -21,13 +21,13 @@
namespace pocketmine\item;
use pocketmine\block\Block as BlockBlock;
use pocketmine\block\Block;
/**
* Class used for Items that can be Blocks
*/
class Block extends Item{
public function __construct(BlockBlock $block, $meta = 0, $count = 1){
class ItemBlock extends Item{
public function __construct(Block $block, $meta = 0, $count = 1){
$this->block = clone $block;
parent::__construct($block->getID(), $block->getDamage(), $count, $block->getName());
}