treeType = $treeType; } /** * TODO: this is ad hoc, but add an interface for this to all tree-related blocks * @return TreeType */ public function getTreeType() : TreeType{ return $this->treeType; } public function getHardness() : float{ return 2; } public function getToolType() : int{ return BlockToolType::TYPE_AXE; } public function getFuelTime() : int{ return 300; } public function getFlameEncouragement() : int{ return 5; } public function getFlammability() : int{ return 5; } }