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 authorlicense- The plugin license
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.license()Returns the value of thelicenserecord component.toProto()final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.website()Returns the value of thewebsiterecord component.
-
Constructor Details
-
PluginInfo
public PluginInfo(String id, String version, String description, String author, String license, String website) Creates an instance of aPluginInforecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentauthor- the value for theauthorrecord componentlicense- the value for thelicenserecord componentwebsite- the value for thewebsiterecord component
-
-
Method Details
-
toProto
-
toString
-
hashCode
-
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
-
version
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
author
-
license
-
website
Returns the value of thewebsiterecord component.- Returns:
- the value of the
websiterecord component
-