Package com.soulfiremc.server.api
Record Class PluginInfo
java.lang.Object
java.lang.Record
com.soulfiremc.server.api.PluginInfo
- Record Components:
id
- The plugin IDversion
- The plugin versiondescription
- The plugin description- The plugin author
license
- The plugin license
public record PluginInfo(String id, String version, String description, String author, String license, String website)
extends Record
Represents information about a plugin.
All data can be shown to the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()
Returns the value of theauthor
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.license()
Returns the value of thelicense
record component.toProto()
final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.website()
Returns the value of thewebsite
record component.
-
Constructor Details
-
PluginInfo
public PluginInfo(String id, String version, String description, String author, String license, String website) Creates an instance of aPluginInfo
record class.- Parameters:
id
- the value for theid
record componentversion
- the value for theversion
record componentdescription
- the value for thedescription
record componentauthor
- the value for theauthor
record componentlicense
- the value for thelicense
record componentwebsite
- the value for thewebsite
record component
-
-
Method Details
-
toProto
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
author
Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-
license
Returns the value of thelicense
record component.- Returns:
- the value of the
license
record component
-
website
Returns the value of thewebsite
record component.- Returns:
- the value of the
website
record component
-