Class ContainerHandleURI
java.lang.Object
org.spongepowered.asm.launch.platform.container.ContainerHandleURI
- All Implemented Interfaces:
IContainerHandle
public class ContainerHandleURI extends java.lang.Object implements IContainerHandle
Container handle which directly replaces the use of classpath location URIs
from previous mixin versions
-
Constructor Summary
Constructors Constructor Description ContainerHandleURI(java.net.URI uri) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetAttribute(java.lang.String name)Retrieve the value of attribute with the specified name, or null if not presentjava.io.FilegetFile()Get the container filejava.util.Collection<IContainerHandle>getNestedContainers()Get nested containers from this container, allows a container to detect and return containers within itself.java.net.URIgetURI()Get the URI for this handleinthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ContainerHandleURI
public ContainerHandleURI(java.net.URI uri)
-
-
Method Details
-
getURI
public java.net.URI getURI()Get the URI for this handle -
getFile
public java.io.File getFile()Get the container file -
getAttribute
public java.lang.String getAttribute(java.lang.String name)Description copied from interface:IContainerHandleRetrieve the value of attribute with the specified name, or null if not present- Specified by:
getAttributein interfaceIContainerHandle- Parameters:
name- attribute name- Returns:
- attribute value or null if not present
-
getNestedContainers
Description copied from interface:IContainerHandleGet nested containers from this container, allows a container to detect and return containers within itself. For example a folder container detecting and returning file containers, or a virtual container returning real containers after a scan.- Specified by:
getNestedContainersin interfaceIContainerHandle
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-