Interface FabricSoundsProvider.SoundExporter

Enclosing class:
FabricSoundsProvider
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 FabricSoundsProvider.SoundExporter
  • Method Details

    • add

      default void add(SoundEvent event, SoundTypeBuilder builder)
      Adds a sound event.
      Parameters:
      event - the sound event
      builder - the sound event details
    • add

      default void add(RegistryEntry<SoundEvent> event, SoundTypeBuilder builder)
      Adds a sound event.
      Parameters:
      event - registry entry for sound event
      builder - the sound event details
      Throws:
      IllegalArgumentException - if the registry entry provided has not been registered
    • add

      void add(Identifier id, SoundTypeBuilder builder)
      Adds a sound event.
      Parameters:
      id - the id of a sound event
      builder - the sound event details