Package dev.mintychochip.mint
Record Class Plugin
java.lang.Object
java.lang.Record
dev.mintychochip.mint.Plugin
- Record Components:
displayName- the display name of the pluginnamespace- the unique namespace identifier for the plugin
@AvailableSince("1.0")
public record Plugin(@NotNull net.kyori.adventure.text.Component displayName, @NotNull String namespace)
extends Record
Represents a plugin that can own preferences and themes.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.ComponentReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Plugin
public Plugin(@NotNull @NotNull net.kyori.adventure.text.Component displayName, @NotNull @NotNull String namespace) Creates an instance of aPluginrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componentnamespace- the value for thenamespacerecord component
-
-
Method Details
-
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). -
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName()Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-