mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Renamed Item\Block to Item\ItemBlock
This commit is contained in:
parent
e2986992c7
commit
be70121f3a
@ -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;
|
||||
|
||||
|
@ -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());
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user