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

@ -34,7 +34,7 @@ class CoarseDirt extends Dirt{
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
if($face === Facing::UP and $item instanceof Hoe){
$item->applyDamage(1);
$this->getWorld()->setBlock($this, BlockFactory::get(BlockLegacyIds::DIRT));
$this->getWorld()->setBlock($this, VanillaBlocks::DIRT());
return true;
}