first look at a giant static interface for block fetching

This commit is contained in:
Dylan K. Taylor
2019-07-06 17:29:40 +01:00
parent 119cb083bf
commit 4d7c18f65b
58 changed files with 2732 additions and 198 deletions

View File

@@ -24,12 +24,11 @@ declare(strict_types=1);
namespace pocketmine\item;
use pocketmine\block\Block;
use pocketmine\block\BlockFactory;
use pocketmine\block\BlockLegacyIds;
use pocketmine\block\VanillaBlocks;
class PumpkinSeeds extends Item{
public function getBlock() : Block{
return BlockFactory::get(BlockLegacyIds::PUMPKIN_STEM);
return VanillaBlocks::PUMPKIN_STEM();
}
}