Interface SulfurCubeArchetypeRegistryEntry.SoundSettings
- Enclosing interface:
SulfurCubeArchetypeRegistryEntry
The sound settings of a sulfur cube of this archetype.
-
Method Summary
Modifier and TypeMethodDescriptionhitSound()Returns the sound played once the sulfur cube is knocked.of(TypedKey<Sound> hitSound, TypedKey<Sound> pushSound, float pushSoundImpulseThreshold, float pushSoundCooldown) Creates a new sound settings instance based on the passed values.Returns the sound played once the sulfur cube is pushed.floatReturns the amount of seconds before the push sound can be played again.floatReturns the smallest impulse required to play the push sound.
-
Method Details
-
hitSound
-
pushSound
-
pushSoundImpulseThreshold
float pushSoundImpulseThreshold()Returns the smallest impulse required to play the push sound.- Returns:
- the smallest impulse required to play the push sound
-
pushSoundCooldown
float pushSoundCooldown()Returns the amount of seconds before the push sound can be played again.- Returns:
- the amount of seconds before the push sound can be played again
-
of
@Contract(value="_, _, _, _ -> new", pure=true) static SulfurCubeArchetypeRegistryEntry.SoundSettings of(TypedKey<Sound> hitSound, TypedKey<Sound> pushSound, float pushSoundImpulseThreshold, float pushSoundCooldown) Creates a new sound settings instance based on the passed values.- Parameters:
hitSound- the sound played once the sulfur cube is knocked, as returned byhitSound()pushSound- the sound played once the sulfur cube is pushed, as returned bypushSound()pushSoundImpulseThreshold- the smallest impulse required to play the push sound, as returned bypushSoundImpulseThreshold()pushSoundCooldown- the amount of seconds before the push sound can be played again, as returned bypushSoundCooldown()- Returns:
- the created instance
-