Interface SoundEventRegistryEntry.Builder

All Superinterfaces:
RegistryBuilder<Sound>, SoundEventRegistryEntry
Enclosing interface:
SoundEventRegistryEntry

@Experimental @NonExtendable public static interface SoundEventRegistryEntry.Builder extends SoundEventRegistryEntry, RegistryBuilder<Sound>
A mutable builder for the SoundEventRegistryEntry plugins may change in applicable registry events.

The following values are required for each builder:

  • Method Details

    • location

      @Contract(value="_ -> this", mutates="this") SoundEventRegistryEntry.Builder location(Key location)
      Sets the resource pack location for this sound event.
      Parameters:
      location - the location
      Returns:
      this builder
    • fixedRange

      @Contract(value="_ -> this", mutates="this") SoundEventRegistryEntry.Builder fixedRange(@Nullable Float fixedRange)
      Sets the fixed range for this sound event.
      Parameters:
      fixedRange - the fixed range
      Returns:
      this builder