Class StandardInheritable
java.lang.Object
org.spongepowered.plugin.metadata.builtin.StandardInheritable
- All Implemented Interfaces:
Inheritable
- Direct Known Subclasses:
StandardPluginMetadata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStandardInheritable.AbstractBuilder<T extends Inheritable,B extends StandardInheritable.AbstractBuilder<T, B>> static final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StandardPluginBrandingprotected final List<StandardPluginContributor>protected final Set<StandardPluginDependency>protected final StandardPluginLinksprotected final Stringprotected final ArtifactVersion -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbranding()dependency(String id) Gets theplugin dependencybyid.links()<T> Optional<T>protected StringJoinertoString()version()
-
Field Details
-
version
-
rawVersion
-
branding
-
links
-
contributors
-
dependencies
-
properties
-
-
Constructor Details
-
StandardInheritable
-
-
Method Details
-
version
- Specified by:
versionin interfaceInheritable- Returns:
- The
version.
-
branding
- Specified by:
brandingin interfaceInheritable- Returns:
- The
branding.
-
links
- Specified by:
linksin interfaceInheritable- Returns:
- The
linksto various web resources.
-
contributors
- Specified by:
contributorsin interfaceInheritable- Returns:
- The
contributorsas an unmodifiableList.
-
dependency
Description copied from interface:Inheritable- Specified by:
dependencyin interfaceInheritable- Parameters:
id- The id- Returns:
- The dependency or
Optional.empty()otherwise.
-
dependencies
- Specified by:
dependenciesin interfaceInheritable- Returns:
- The
dependenciesas an unmodifiableSet.
-
property
Description copied from interface:Inheritable- Specified by:
propertyin interfaceInheritable- Type Parameters:
T- The type- Parameters:
key- The key- Returns:
- The property or
Optional.empty()otherwise.
-
properties
- Specified by:
propertiesin interfaceInheritable- Returns:
- The properties as an unmodifiable
Map.
-
toString
-
stringJoiner
-