Package net.kamkeyke.raccooncore.data
Record Class SoundEntry
java.lang.Object
java.lang.Record
net.kamkeyke.raccooncore.data.SoundEntry
-
Constructor Summary
ConstructorsConstructorDescriptionSoundEntry(String soundName, String basePathAndName, int variations, String[] customPathsAndNames) Creates an instance of aSoundEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasePathAndNamerecord component.static SoundEntrycustomPaths(String soundName, String... customPathsAndNames) String[]Returns the value of thecustomPathsAndNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SoundEntryReturns the value of thesoundNamerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevariationsrecord component.static SoundEntry
-
Constructor Details
-
SoundEntry
public SoundEntry(String soundName, String basePathAndName, int variations, String[] customPathsAndNames) Creates an instance of aSoundEntryrecord class.- Parameters:
soundName- the value for thesoundNamerecord componentbasePathAndName- the value for thebasePathAndNamerecord componentvariations- the value for thevariationsrecord componentcustomPathsAndNames- the value for thecustomPathsAndNamesrecord component
-
-
Method Details
-
single
-
varied
-
customPaths
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
soundName
Returns the value of thesoundNamerecord component.- Returns:
- the value of the
soundNamerecord component
-
basePathAndName
Returns the value of thebasePathAndNamerecord component.- Returns:
- the value of the
basePathAndNamerecord component
-
variations
public int variations()Returns the value of thevariationsrecord component.- Returns:
- the value of the
variationsrecord component
-
customPathsAndNames
Returns the value of thecustomPathsAndNamesrecord component.- Returns:
- the value of the
customPathsAndNamesrecord component
-