Class MetadataContainer
- java.lang.Object
-
- org.spongepowered.plugin.metadata.builtin.MetadataContainer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataContainer.Builderstatic classMetadataContainer.Serializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Inheritable>globalMetadata()Stringlicense()Gets thelicenseof the data within this container.StandardContainerLoaderloader()Optional<String>mappings()Gets themappingsthat code within this container might be written in.Set<PluginMetadata>metadata()Optional<PluginMetadata>metadata(String id)Gets aplugin metadataby itsid.StringtoString()
-
-
-
Method Detail
-
loader
public StandardContainerLoader loader()
-
license
public String license()
Description copied from interface:ContainerGets thelicenseof the data within this container.Consult the vendor for how this field is used.
In the generic implementation, a license's name is expected.
Notable examples include MIT or All Rights Reserved.
-
mappings
public Optional<String> mappings()
Description copied from interface:ContainerGets themappingsthat code within this container might be written in.The format of this string should be in maven dependency format (group:artifact:version).
Consult the vendor for how this field is used. As an example, that entity could use this purely for information purposes or go farther and perform artifact remapping from these mappings to another.
- Specified by:
mappingsin interfaceContainer- Returns:
- The mappings or
Optional.empty()otherwise
-
globalMetadata
public Optional<Inheritable> globalMetadata()
- Specified by:
globalMetadatain interfaceContainer- Returns:
- The
global metadataorOptional.empty()otherwise
-
metadata
public Optional<PluginMetadata> metadata(String id)
Description copied from interface:Container- Specified by:
metadatain interfaceContainer- Parameters:
id- The id- Returns:
- The plugin metadata or
Optional.empty()otherwise
-
metadata
public Set<PluginMetadata> metadata()
- Specified by:
metadatain interfaceContainer- Returns:
- All of the
plugin metadataas an unmodifiableSet.
-
-