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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddonInterface
record component.Returns the value of theapiVersion
record component.author()
Returns the value of theauthor
record component.Returns the value of theclassPath
record component.final boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record 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 int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.toString()
Get everything in a single String.version()
Returns the value of theversion
record component.
-
Constructor Details
-
Addon
public Addon(AddonInterface addonInterface, String name, String author, String version, String apiVersion, String classPath, File file) Creates an instance of aAddon
record class.- Parameters:
addonInterface
- the value for theaddonInterface
record componentname
- the value for thename
record componentauthor
- the value for theauthor
record componentversion
- the value for theversion
record componentapiVersion
- the value for theapiVersion
record componentclassPath
- the value for theclassPath
record componentfile
- the value for thefile
record 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 theaddonInterface
record component.- Returns:
- the value of the
addonInterface
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
author
Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
apiVersion
Returns the value of theapiVersion
record component.- Returns:
- the value of the
apiVersion
record component
-
classPath
Returns the value of theclassPath
record component.- Returns:
- the value of the
classPath
record component
-
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-