mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
first look at a giant static interface for block fetching
This commit is contained in:
@@ -24,13 +24,12 @@ declare(strict_types=1);
|
||||
namespace pocketmine\item;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\block\BlockLegacyIds;
|
||||
use pocketmine\block\VanillaBlocks;
|
||||
|
||||
class Carrot extends Food{
|
||||
|
||||
public function getBlock() : Block{
|
||||
return BlockFactory::get(BlockLegacyIds::CARROT_BLOCK);
|
||||
return VanillaBlocks::CARROTS();
|
||||
}
|
||||
|
||||
public function getFoodRestore() : int{
|
||||
|
Reference in New Issue
Block a user