Class Repository
- java.lang.Object
-
- net.minecraftforge.fml.relauncher.libraries.Repository
-
- Direct Known Subclasses:
LinkRepository
public class Repository extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.Map<java.lang.String,Repository>
cache
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.String
name
private java.io.File
root
-
Constructor Summary
Constructors Modifier Constructor Description protected
Repository(java.io.File root)
protected
Repository(java.io.File root, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
archive(Artifact artifact, java.io.File file, byte[] manifest)
static Repository
create(java.io.File root)
static Repository
create(java.io.File root, java.lang.String name)
boolean
equals(java.lang.Object o)
void
filterLegacy(java.util.List<java.io.File> list)
static Repository
get(java.lang.String name)
java.io.File
getFile(java.lang.String path)
int
hashCode()
static Repository
replace(java.io.File root, java.lang.String name)
Artifact
resolve(Artifact artifact)
static Artifact
resolveAll(Artifact artifact)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
cache
static final java.util.Map<java.lang.String,Repository> cache
-
name
private final java.lang.String name
-
root
private final java.io.File root
-
-
Method Detail
-
create
public static Repository create(java.io.File root) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static Repository create(java.io.File root, java.lang.String name)
-
replace
public static Repository replace(java.io.File root, java.lang.String name)
-
get
public static Repository get(java.lang.String name)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getFile
public java.io.File getFile(java.lang.String path)
-
archive
public java.io.File archive(Artifact artifact, java.io.File file, byte[] manifest)
-
filterLegacy
public void filterLegacy(java.util.List<java.io.File> list)
-
-