source: class MinecraftlyUtil {
  
  	public static long convertMillisToTicks( long milliseconds ) {
  		double nearestTickTime = round( milliseconds, 50 );
  		return (long) ((nearestTickTime / 1000) * 20);
  	}
  
  	public static UUID convertFromNoDashes( String uuidString );
  	public static String convertToNoDashes( UUID uuid );
  	public static String convertToNoDashes( String uuidString );
  	public static String downloadText( String url );
  	public static String downloadText( URL url );
  	public static String readText( String filePath );
  	public static String readText( File file );
  	public static double round( double value, double factor );
  	public static InetSocketAddress parseAddress( String address );
  	public static String getTimeString( long millis );
  
  }
  
  class MinecraftlyUtilTest {
  
  	@Test
  	public void tickConversionTest() {
  
target: 
  		Assert.assertEquals( 1, MinecraftlyUtil.convertMillisToTicks( 40 ) );
  		Assert.assertEquals( 1, MinecraftlyUtil.convertMillisToTicks( 50 ) );
  		Assert.assertEquals( 1, MinecraftlyUtil.convertMillisToTicks( 60 ) );
  
  		Assert.assertEquals( 3, MinecraftlyUtil.convertMillisToTicks( 140 ) );
  		Assert.assertEquals( 3, MinecraftlyUtil.convertMillisToTicks( 150 ) );
  		Assert.assertEquals( 3, MinecraftlyUtil.convertMillisToTicks( 160 ) );
  
  	}
  
  }