public function isHoe() { return false; }
public function onActivate(Item $item, Player $player = null) { if ($item->isHoe()) { $item->useOn($this); $this->getLevel()->setBlock($this, Block::get(Item::FARMLAND, 0), true); return true; } return false; }