Record Class RelicEquipSound.Sounds
java.lang.Object
java.lang.Record
com.github.darksoulq.relique.component.RelicEquipSound.Sounds
- Enclosing class:
RelicEquipSound
public static record RelicEquipSound.Sounds(net.kyori.adventure.key.Key equip, net.kyori.adventure.key.Key unequip)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSounds(net.kyori.adventure.key.Key equip, net.kyori.adventure.key.Key unequip) Creates an instance of aSoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.kyori.adventure.key.Keyequip()Returns the value of theequiprecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.kyori.adventure.key.Keyunequip()Returns the value of theunequiprecord component.
-
Constructor Details
-
Sounds
public Sounds(net.kyori.adventure.key.Key equip, net.kyori.adventure.key.Key unequip) Creates an instance of aSoundsrecord class.- Parameters:
equip- the value for theequiprecord componentunequip- the value for theunequiprecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
equip
public net.kyori.adventure.key.Key equip()Returns the value of theequiprecord component.- Returns:
- the value of the
equiprecord component
-
unequip
public net.kyori.adventure.key.Key unequip()Returns the value of theunequiprecord component.- Returns:
- the value of the
unequiprecord component
-