Replace all legacy blockID references with BlockIds::

This commit is contained in:
Dylan K. Taylor
2019-03-23 19:36:09 +00:00
parent f84d7ad70d
commit 79ef8e0803
79 changed files with 526 additions and 505 deletions

View File

@@ -25,6 +25,7 @@ namespace pocketmine\item;
use pocketmine\block\Block;
use pocketmine\block\BlockFactory;
use pocketmine\block\BlockIds;
class Carrot extends Food{
public function __construct(){
@@ -32,7 +33,7 @@ class Carrot extends Food{
}
public function getBlock() : Block{
return BlockFactory::get(Block::CARROT_BLOCK);
return BlockFactory::get(BlockIds::CARROT_BLOCK);
}
public function getFoodRestore() : int{