Class StandardInheritable
java.lang.Object
org.spongepowered.plugin.metadata.builtin.StandardInheritable
- All Implemented Interfaces:
Inheritable
- Direct Known Subclasses:
StandardPluginMetadata
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
StandardInheritable.AbstractBuilder<T extends Inheritable,
B extends StandardInheritable.AbstractBuilder<T, B>> static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final StandardPluginBranding
protected final List<StandardPluginContributor>
protected final Set<StandardPluginDependency>
protected final StandardPluginLinks
protected final String
protected final ArtifactVersion
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbranding()
dependency
(String id) Gets theplugin dependency
byid
.links()
<T> Optional<T>
protected StringJoiner
toString()
version()
-
Field Details
-
version
-
rawVersion
-
branding
-
links
-
contributors
-
dependencies
-
properties
-
-
Constructor Details
-
StandardInheritable
-
-
Method Details
-
version
- Specified by:
version
in interfaceInheritable
- Returns:
- The
version
.
-
branding
- Specified by:
branding
in interfaceInheritable
- Returns:
- The
branding
.
-
links
- Specified by:
links
in interfaceInheritable
- Returns:
- The
links
to various web resources.
-
contributors
- Specified by:
contributors
in interfaceInheritable
- Returns:
- The
contributors
as an unmodifiableList
.
-
dependency
Description copied from interface:Inheritable
- Specified by:
dependency
in interfaceInheritable
- Parameters:
id
- The id- Returns:
- The dependency or
Optional.empty()
otherwise.
-
dependencies
- Specified by:
dependencies
in interfaceInheritable
- Returns:
- The
dependencies
as an unmodifiableSet
.
-
property
Description copied from interface:Inheritable
- Specified by:
property
in interfaceInheritable
- Type Parameters:
T
- The type- Parameters:
key
- The key- Returns:
- The property or
Optional.empty()
otherwise.
-
properties
- Specified by:
properties
in interfaceInheritable
- Returns:
- The properties as an unmodifiable
Map
.
-
toString
-
stringJoiner
-