Package me.qscbm.inlayx.api
Record Class DropCandidate
java.lang.Object
java.lang.Record
me.qscbm.inlayx.api.DropCandidate
public record DropCandidate(@NonNull Gem gem, @NonNull org.bukkit.configuration.ConfigurationSection settings)
extends Record
掉落候选项.
-
Constructor Summary
ConstructorsConstructorDescriptionDropCandidate(@NonNull Gem gem, @NonNull org.bukkit.configuration.ConfigurationSection settings) Creates an instance of aDropCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NonNull Gemgem()Returns the value of thegemrecord component.final inthashCode()Returns a hash code value for this object.@NonNull org.bukkit.configuration.ConfigurationSectionsettings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropCandidate
public DropCandidate(@NonNull @NonNull Gem gem, @NonNull @NonNull org.bukkit.configuration.ConfigurationSection settings) Creates an instance of aDropCandidaterecord class.- Parameters:
gem- the value for thegemrecord componentsettings- the value for thesettingsrecord 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). -
gem
Returns the value of thegemrecord component.- Returns:
- the value of the
gemrecord component
-
settings
@NonNull public @NonNull org.bukkit.configuration.ConfigurationSection settings()Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-