Package de.presti.ree6.addons
Record Class Addon
java.lang.Object
java.lang.Record
de.presti.ree6.addons.Addon
- Record Components:
addonInterface- AddonInterface.name- Add-on Name.- Add-on Author.version- Add-on Version.apiVersion- Ree6 Version used for the Addon.classPath- Path to the Main-Class in the JAR.file- The actual JAR as File.
public record Addon(AddonInterface addonInterface, String name, String author, String version, String apiVersion, String classPath, File file)
extends Record
Created a new Local-Addon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddonInterfacerecord component.Returns the value of theapiVersionrecord component.author()Returns the value of theauthorrecord component.Returns the value of theclassPathrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.Get the AddonInterface.Get the Ree6 Version used for the Addon.Get the Author Name.Get the Path to the Main class.getFile()Get the actual File.getName()Get the Add-on Name.Get the Add-on Version.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Get everything in a single String.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Addon
public Addon(AddonInterface addonInterface, String name, String author, String version, String apiVersion, String classPath, File file) Creates an instance of aAddonrecord class.- Parameters:
addonInterface- the value for theaddonInterfacerecord componentname- the value for thenamerecord componentauthor- the value for theauthorrecord componentversion- the value for theversionrecord componentapiVersion- the value for theapiVersionrecord componentclassPath- the value for theclassPathrecord componentfile- the value for thefilerecord component
-
-
Method Details
-
getAddonInterface
Get the AddonInterface.- Returns:
- AddonInterface.
-
getName
Get the Add-on Name.- Returns:
- Add-on Name.
-
getAuthor
Get the Author Name.- Returns:
- Author Name.
-
getVersion
Get the Add-on Version.- Returns:
- Add-on Version.
-
getApiVersion
Get the Ree6 Version used for the Addon.- Returns:
- used Ree6 Version.
-
getClassPath
Get the Path to the Main class.- Returns:
- Main class Path.
-
getFile
Get the actual File.- Returns:
- File.
-
toString
Get everything in a single String. -
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). -
addonInterface
Returns the value of theaddonInterfacerecord component.- Returns:
- the value of the
addonInterfacerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
apiVersion
Returns the value of theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
classPath
Returns the value of theclassPathrecord component.- Returns:
- the value of the
classPathrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-