All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.k3nder.core.json.version.versionJson Maven / Gradle / Ivy

package net.k3nder.core.json.version;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.ObjectMapper;

import net.kender.Kjson.Json;
import net.k3nder.core.json.libreries.librarie;



public class versionJson {
    @JsonIgnore public String minecraftArguments;
    @JsonIgnore
    public String arguments;
    public String inheritsFrom;
    public assetIndex assetIndex;
    public String assets;
    public int complianceLevel;
    public downloadsClient downloads;
    public String id;
    public javaV javaVersion;
    public ArrayList libraries;
    public String mainClass;
    public int minimumLauncherVersion;
    public String releaseTime;
    public String time;
    public String type; 
    public log logging;

    public boolean isCustom(){
        return inheritsFrom != null;
    }
    public static versionJson load(File a) throws IOException{
        return new ObjectMapper().readValue(a, versionJson.class);
    }
    public static versionJson load(URI a) throws IOException{
        return new ObjectMapper().readValue(Json.sContentOf(a),versionJson.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy