Record Class Sound
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.Sound
- Record Components:
enable- whether the sound is played at allvolume- the playback volumepitch- the playback pitchcategory- the mixer category the sound belongs toname- the namespaced sound id
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.booleanenable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.static SoundReads a sound from its config representation.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.floatpitch()Returns the value of thepitchrecord component.toJson()Writes this sound back to its config representation, omitting the details while disabled.final StringtoString()Returns a string representation of this record class.floatvolume()Returns the value of thevolumerecord component.
-
Field Details
-
DEFAULT
A disabled sound, which every disabled entry collapses to.
-
-
Constructor Details
-
Sound
Creates an instance of aSoundrecord class.
-
-
Method Details
-
fromJson
-
toJson
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enable
-
volume
-
pitch
-
category
-
name
-