Class StandardPluginMetadata
- java.lang.Object
-
- org.spongepowered.plugin.metadata.builtin.StandardInheritable
-
- org.spongepowered.plugin.metadata.builtin.StandardPluginMetadata
-
- All Implemented Interfaces:
Inheritable,PluginMetadata
public final class StandardPluginMetadata extends StandardInheritable implements PluginMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandardPluginMetadata.Builderstatic classStandardPluginMetadata.Deserializerstatic classStandardPluginMetadata.Serializer-
Nested classes/interfaces inherited from class org.spongepowered.plugin.metadata.builtin.StandardInheritable
StandardInheritable.AbstractBuilder<T extends Inheritable,B extends StandardInheritable.AbstractBuilder<T,B>>
-
-
Field Summary
-
Fields inherited from class org.spongepowered.plugin.metadata.builtin.StandardInheritable
branding, contributors, dependencies, links, properties, rawVersion, version
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardPluginMetadata.Builderbuilder()Containercontainer()Optional<String>description()Stringentrypoint()Gets theentrypoint.booleanequals(Object o)inthashCode()Stringid()Gets theid.Optional<String>name()StringtoString()-
Methods inherited from class org.spongepowered.plugin.metadata.builtin.StandardInheritable
branding, contributors, dependencies, dependency, links, properties, property, stringJoiner, version
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.spongepowered.plugin.metadata.Inheritable
branding, contributors, dependencies, dependency, links, properties, property, version
-
-
-
-
Method Detail
-
builder
public static StandardPluginMetadata.Builder builder()
-
container
public Container container()
- Specified by:
containerin interfacePluginMetadata- Returns:
- The
container.
-
id
public String id()
Description copied from interface:PluginMetadataGets theid.Ids must conform to the following requirements:
- Must be between 2 and 64 characters in length
- Must start with a lower case letter (a-z)
- May only contain a mix of lower case letters (a-z), numbers (0-9), dashes (-), and underscores (_)
- Specified by:
idin interfacePluginMetadata- Returns:
- The id
-
entrypoint
public String entrypoint()
Description copied from interface:PluginMetadataGets theentrypoint.Consult the vendor for how this field is used. As an example, this could be the name of a module or a fully realized path to a discrete class.
- Specified by:
entrypointin interfacePluginMetadata- Returns:
- The entrypoint
-
name
public Optional<String> name()
- Specified by:
namein interfacePluginMetadata- Returns:
- The
nameorOptional.empty()otherwise.
-
description
public Optional<String> description()
- Specified by:
descriptionin interfacePluginMetadata- Returns:
- The
descriptionorOptional.empty()otherwise.
-
toString
public String toString()
- Overrides:
toStringin classStandardInheritable
-
-