Interface BlockSoundGroup


@Deprecated(forRemoval=true, since="1.18.2") public interface BlockSoundGroup
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the sounds that a Block makes in certain situations

The sound group includes break, step, place, hit, and fall sounds.

  • Method Details

    • getBreakSound

      @NotNull @Deprecated(forRemoval=true, since="1.18.2") @NotNull Sound getBreakSound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the sound that plays when breaking this block
      Returns:
      The break sound
    • getStepSound

      @NotNull @Deprecated(forRemoval=true, since="1.18.2") @NotNull Sound getStepSound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the sound that plays when stepping on this block
      Returns:
      The step sound
    • getPlaceSound

      @NotNull @Deprecated(forRemoval=true, since="1.18.2") @NotNull Sound getPlaceSound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the sound that plays when placing this block
      Returns:
      The place sound
    • getHitSound

      @NotNull @Deprecated(forRemoval=true, since="1.18.2") @NotNull Sound getHitSound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the sound that plays when hitting this block
      Returns:
      The hit sound
    • getFallSound

      @NotNull @Deprecated(forRemoval=true, since="1.18.2") @NotNull Sound getFallSound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the sound that plays when this block falls
      Returns:
      The fall sound