2015-12-08 06:47:58 -08:00
|
|
|
package amidst.mojangapi.file.json.version;
|
2015-12-05 16:25:58 -08:00
|
|
|
|
2015-12-06 02:24:05 -08:00
|
|
|
import java.util.Collections;
|
2015-12-05 16:25:58 -08:00
|
|
|
import java.util.List;
|
|
|
|
|
2015-12-09 07:48:16 -08:00
|
|
|
import amidst.documentation.GsonConstructor;
|
2015-12-10 11:12:36 -08:00
|
|
|
import amidst.documentation.Immutable;
|
2015-12-06 01:43:01 -08:00
|
|
|
|
2015-12-10 11:12:36 -08:00
|
|
|
@Immutable
|
2015-12-05 16:25:58 -08:00
|
|
|
public class VersionJson {
|
2017-05-31 15:47:12 -07:00
|
|
|
private volatile String id;
|
|
|
|
private volatile String inheritsFrom;
|
2015-12-10 11:12:36 -08:00
|
|
|
private volatile List<LibraryJson> libraries = Collections.emptyList();
|
2015-12-05 16:25:58 -08:00
|
|
|
|
2015-12-09 07:48:16 -08:00
|
|
|
@GsonConstructor
|
2015-12-05 16:25:58 -08:00
|
|
|
public VersionJson() {
|
|
|
|
}
|
|
|
|
|
2018-03-09 23:48:03 -08:00
|
|
|
public VersionJson(String id, String inheritsFrom) {
|
|
|
|
this.id = id;
|
|
|
|
this.inheritsFrom = inheritsFrom;
|
|
|
|
}
|
|
|
|
|
2017-05-31 15:47:12 -07:00
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getInheritsFrom() {
|
|
|
|
return inheritsFrom;
|
|
|
|
}
|
|
|
|
|
2015-12-05 16:25:58 -08:00
|
|
|
public List<LibraryJson> getLibraries() {
|
|
|
|
return libraries;
|
|
|
|
}
|
|
|
|
}
|