Interface SoundEventRegistryEntry

All Known Subinterfaces:
SoundEventRegistryEntry.Builder

@Experimental @NonExtendable public interface SoundEventRegistryEntry
A data-centric version-specific registry entry for the Sound type.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A mutable builder for the SoundEventRegistryEntry plugins may change in applicable registry events.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the fixed range for this sound event, if present.
    Gets the resource pack location for this sound event.
  • Method Details

    • location

      @Contract(pure=true) Key location()
      Gets the resource pack location for this sound event.
      Returns:
      the location
    • fixedRange

      @Contract(pure=true) @Nullable Float fixedRange()
      Gets the fixed range for this sound event, if present.
      Returns:
      the fixed range, or null if not present