Record Class HoneypotSupportedVersions
java.lang.Object
java.lang.Record
org.reprogle.honeypot.common.utils.HoneypotSupportedVersions
-
Constructor Summary
ConstructorsConstructorDescriptionHoneypotSupportedVersions(org.bukkit.plugin.Plugin plugin, String version) Creates an instance of aHoneypotSupportedVersionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidgetSupportedVersions(org.bukkit.util.Consumer<String> consumer) Gets the supported server versions for the current version of the pluginfinal inthashCode()Returns a hash code value for this object.org.bukkit.plugin.Pluginplugin()Returns the value of thepluginrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
HoneypotSupportedVersions
Creates an instance of aHoneypotSupportedVersionsrecord class.- Parameters:
plugin- the value for thepluginrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
getSupportedVersions
Gets the supported server versions for the current version of the plugin- Parameters:
consumer- The consumer function
-
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). -
plugin
public org.bukkit.plugin.Plugin plugin()Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-