public class BasicDownloadRequirement extends java.lang.Object implements DownloadResolverManager.DownloadRequirement
Constructor and Description |
---|
BasicDownloadRequirement(EntityDriver driver) |
BasicDownloadRequirement(EntityDriver driver,
java.util.Map<java.lang.String,?> properties) |
BasicDownloadRequirement(EntityDriver entityDriver,
java.lang.String addonName,
java.util.Map<java.lang.String,?> properties) |
Modifier and Type | Method and Description |
---|---|
static BasicDownloadRequirement |
copy(DownloadResolverManager.DownloadRequirement req,
java.util.Map<java.lang.String,?> additionalProperties)
Copies the given DownloadRequirement, but overriding the original properties with the given additional properties.
|
java.lang.String |
getAddonName()
The name of the add-on to be downloaded, or null if it is the main installed.
|
EntityDriver |
getEntityDriver()
The
EntityDriver that this download is for. |
java.util.Map<java.lang.String,?> |
getProperties()
Default properties for this download.
|
java.lang.String |
toString() |
public BasicDownloadRequirement(EntityDriver driver)
public BasicDownloadRequirement(EntityDriver driver, java.util.Map<java.lang.String,?> properties)
public BasicDownloadRequirement(EntityDriver entityDriver, java.lang.String addonName, java.util.Map<java.lang.String,?> properties)
public static BasicDownloadRequirement copy(DownloadResolverManager.DownloadRequirement req, java.util.Map<java.lang.String,?> additionalProperties)
public EntityDriver getEntityDriver()
DownloadResolverManager.DownloadRequirement
EntityDriver
that this download is for.getEntityDriver
in interface DownloadResolverManager.DownloadRequirement
public java.lang.String getAddonName()
DownloadResolverManager.DownloadRequirement
getAddonName
in interface DownloadResolverManager.DownloadRequirement
public java.util.Map<java.lang.String,?> getProperties()
DownloadResolverManager.DownloadRequirement
getProperties
in interface DownloadResolverManager.DownloadRequirement
public java.lang.String toString()
toString
in class java.lang.Object