public class DownloadSubstituters
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
getBasicAddonSubstitutions(EntityDriver driver,
java.lang.String addon) |
static java.util.Map<java.lang.String,java.lang.Object> |
getBasicEntitySubstitutions(EntityDriver driver) |
static java.util.Map<java.lang.String,java.lang.Object> |
getBasicSubstitutions(DownloadResolverManager.DownloadRequirement req) |
static java.lang.String |
substitute(DownloadResolverManager.DownloadRequirement req,
java.lang.String basevalue)
Converts the basevalue by substituting things in the form ${key} for values specific
to a given entity driver.
|
static java.lang.String |
substitute(java.lang.String basevalue,
java.util.Map<java.lang.String,?> substitutions) |
static com.google.common.base.Function<DownloadResolverManager.DownloadRequirement,DownloadResolverManager.DownloadTargets> |
substituter(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,java.lang.String> basevalueProducer,
com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends java.util.Map<java.lang.String,?>> subsProducer) |
public static java.lang.String substitute(DownloadResolverManager.DownloadRequirement req, java.lang.String basevalue)
driver.getOsTag()
)
DownloadResolverManager.DownloadRequirement.getProperties()
; these
override the default substitutions listed above.public static java.util.Map<java.lang.String,java.lang.Object> getBasicSubstitutions(DownloadResolverManager.DownloadRequirement req)
public static java.util.Map<java.lang.String,java.lang.Object> getBasicEntitySubstitutions(EntityDriver driver)
public static java.util.Map<java.lang.String,java.lang.Object> getBasicAddonSubstitutions(EntityDriver driver, java.lang.String addon)
public static java.lang.String substitute(java.lang.String basevalue, java.util.Map<java.lang.String,?> substitutions)
public static com.google.common.base.Function<DownloadResolverManager.DownloadRequirement,DownloadResolverManager.DownloadTargets> substituter(com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,java.lang.String> basevalueProducer, com.google.common.base.Function<? super DownloadResolverManager.DownloadRequirement,? extends java.util.Map<java.lang.String,?>> subsProducer)