Please translate short script to Java from C#?

I’m new to Unity and scripting… I truly appreciate the help.

using UnityEngine;


public class minimapcee : MonoBehaviour {
	
	public RenderTexture MiniMapTexture;
	public Material MiniMapMaterial;
	
	private float offset;
	
	void Awake()
	{
		offset = 10;
	}
	
	void OnGUI()
	{
		if(Event.current.type == EventType.Repaint)
			Graphics.DrawTexture(new Rect(Screen.width - 256 - offset, 256 + offset, 256, 256), MiniMapTexture, MiniMapMaterial);
	
	}
}

class minimapcee extends MonoBehaviour {
public var MiniMapTexture : RenderTexture;
public var MiniMapMaterial : Material;
private var offset : float;
function Awake() {
offset = 10;
}
function OnGUI() {
if (Event.current.type == EventType.Repaint)
Graphics.DrawTexture(new Rect(Screen.width - 256 - offset, 256 + offset, 256, 256), MiniMapTexture, MiniMapMaterial);

	}
}