Interface SulfurCubeArchetypeRegistryEntry.SoundSettings

Enclosing interface:
SulfurCubeArchetypeRegistryEntry

@Experimental @NonExtendable public static interface SulfurCubeArchetypeRegistryEntry.SoundSettings
The sound settings of a sulfur cube of this archetype.
  • Method Details

    • hitSound

      TypedKey<Sound> hitSound()
      Returns the sound played once the sulfur cube is knocked.
      Returns:
      the sound played once the sulfur cube is knocked
    • pushSound

      TypedKey<Sound> pushSound()
      Returns the sound played once the sulfur cube is pushed.
      Returns:
      the sound played once the sulfur cube is pushed
    • 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 by hitSound()
      pushSound - the sound played once the sulfur cube is pushed, as returned by pushSound()
      pushSoundImpulseThreshold - the smallest impulse required to play the push sound, as returned by pushSoundImpulseThreshold()
      pushSoundCooldown - the amount of seconds before the push sound can be played again, as returned by pushSoundCooldown()
      Returns:
      the created instance