Class MetadataContainer
java.lang.Object
org.spongepowered.plugin.metadata.builtin.MetadataContainer
- All Implemented Interfaces:
Container
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
-
Method Details
-
loader
-
license
Description copied from interface:Container
Gets thelicense
of 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
Description copied from interface:Container
Gets themappings
that 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:
mappings
in interfaceContainer
- Returns:
- The mappings or
Optional.empty()
otherwise
-
globalMetadata
- Specified by:
globalMetadata
in interfaceContainer
- Returns:
- The
global metadata
orOptional.empty()
otherwise
-
metadata
Description copied from interface:Container
- Specified by:
metadata
in interfaceContainer
- Parameters:
id
- The id- Returns:
- The plugin metadata or
Optional.empty()
otherwise
-
metadata
- Specified by:
metadata
in interfaceContainer
- Returns:
- All of the
plugin metadata
as an unmodifiableSet
.
-
toString
-