Interface FabricSoundProvider.SoundGenerator

Enclosing class:
FabricSoundProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@NonExtendable @FunctionalInterface public static interface FabricSoundProvider.SoundGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(net.minecraft.sounds.SoundEvent sound, boolean replace, @Nullable String subtitle, SoundBuilder... sounds)
    Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
    default void
    add(net.minecraft.sounds.SoundEvent sound, boolean replace, SoundBuilder... sounds)
    Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
    default void
    add(net.minecraft.sounds.SoundEvent sound, @Nullable String subtitle, SoundBuilder... sounds)
    Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
    default void
    add(net.minecraft.sounds.SoundEvent sound, SoundBuilder... sounds)
    Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
  • Method Details

    • add

      void add(net.minecraft.sounds.SoundEvent sound, boolean replace, @Nullable @Nullable String subtitle, SoundBuilder... sounds)
      Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
      Parameters:
      sound - The SoundEvent to add an entry for.
      replace - Set this to true if this entry corresponds to a sound event from vanilla Minecraft or some other mod's namespace, in order to replace the default sounds from the original namespace's sounds file via your own namespace's resource pack.
      subtitle - An optional subtitle to use for the event, given as a translation key for the subtitle.
      sounds - A list of SoundBuilder instances from which to generate individual sound entry data for this event.
    • add

      default void add(net.minecraft.sounds.SoundEvent sound, boolean replace, SoundBuilder... sounds)
      Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
      Parameters:
      sound - The SoundEvent to add an entry for.
      replace - Set this to true if this entry corresponds to a sound event from vanilla Minecraft or some other mod's namespace, in order to replace the default sounds from the original namespace's sounds file via your own namespace's resource pack.
      sounds - A list of SoundBuilder instances from which to generate individual sound entry data for this event.
    • add

      default void add(net.minecraft.sounds.SoundEvent sound, @Nullable @Nullable String subtitle, SoundBuilder... sounds)
      Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
      Parameters:
      sound - The SoundEvent to add an entry for.
      subtitle - An optional subtitle to use for the event, given as a translation key for the subtitle.
      sounds - A list of SoundBuilder instances from which to generate individual sound entry data for this event.
    • add

      default void add(net.minecraft.sounds.SoundEvent sound, SoundBuilder... sounds)
      Adds an individual SoundEvent and its respective sounds to your mod's sounds.json file.
      Parameters:
      sound - The SoundEvent to add an entry for.
      sounds - A list of SoundBuilder instances from which to generate individual sound entry data for this event.