public static Entity staticload(RandomAccessFile loadfile)
    	throws IOException
	{
    	int loadID = loadfile.readInt();
    	
    	if (loadID == -1)
    	{
    		return null;
    	}
    	
    	Entity finalEntity = null; 
    	
    	@SuppressWarnings("rawtypes")
		Class entClass = EntityList.getEntity(loadID);
    	try 
    	{
			finalEntity = (Entity)entClass.newInstance();
		} 
    	catch (InstantiationException e) 
		{
			e.printStackTrace();
		} 
    	catch (IllegalAccessException e) 
		{
			e.printStackTrace();
		}
    	
    	if (finalEntity != null)
    	{
    		//System.out.printf("Trying to save a %s at %d!\n", finalEntity.name, loadfile.getFilePointer());
        	finalEntity.corner = loadfile.readInt();
        	finalEntity.x = loadfile.readDouble();
        	finalEntity.y = loadfile.readDouble();
        	finalEntity.z = loadfile.readDouble();
        	finalEntity.hurtTime = loadfile.readInt();
    		finalEntity.load(loadfile);
    	}
    	return finalEntity;
	}