Class ContainerHandleVirtual
java.lang.Object
org.spongepowered.asm.launch.platform.container.ContainerHandleVirtual
- All Implemented Interfaces:
IContainerHandle,IMixinConfigSource
A virtual container, used to marshal other containers around
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(IContainerHandle nested) Add a nested container to this virtual containerbooleangetAttribute(String name) Retrieve the value of attribute with the specified name, or null if not presentPlain text description of the config source, can be as descriptive as necessary to help the user identify the source, for example could be the full path to the source item, or something more descriptive.getId()Get the identifier for this sourcegetName()Get the name of this containerGet nested containers from this container, allows a container to detect and return containers within itself.inthashCode()setAttribute(String key, String value) Set a virtual attribute on this virtual containertoString()
-
Constructor Details
-
ContainerHandleVirtual
.ctor- Parameters:
name- Unique container name
-
-
Method Details
-
getId
Description copied from interface:IMixinConfigSourceGet the identifier for this source- Specified by:
getIdin interfaceIMixinConfigSource
-
getDescription
Description copied from interface:IMixinConfigSourcePlain text description of the config source, can be as descriptive as necessary to help the user identify the source, for example could be the full path to the source item, or something more descriptive.- Specified by:
getDescriptionin interfaceIMixinConfigSource
-
getName
Get the name of this container -
setAttribute
Set a virtual attribute on this virtual container- Parameters:
key- attribute keyvalue- attribute value- Returns:
- fluent interface
-
add
Add a nested container to this virtual container- Parameters:
nested- Nested container to add- Returns:
- fluent
-
getAttribute
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
-
hashCode
public int hashCode() -
toString
-