public static interface SoundRegistry.Builder
| Modifier and Type | Method and Description |
|---|---|
@NotNull SoundRegistry |
build()
Builds the sound registry.
|
@NotNull SoundRegistry.Builder |
namespace(@NotNull java.lang.String namespace)
Sets the sound registry namespace.
|
@NotNull SoundRegistry.Builder |
sound(@NotNull SoundEvent event)
Adds the given sound event to the registry.
|
@NotNull SoundRegistry.Builder |
sounds(@NotNull java.util.Collection<? extends SoundEvent> sounds)
Sets the given sound events to the registry.
|
@Contract(value="_ -> this") @NotNull @NotNull SoundRegistry.Builder namespace(@NotNull @NotNull java.lang.String namespace)
namespace - The sound registry namespace@Contract(value="_ -> this") @NotNull @NotNull SoundRegistry.Builder sound(@NotNull @NotNull SoundEvent event)
event - The sound event@Contract(value="_ -> this") @NotNull @NotNull SoundRegistry.Builder sounds(@NotNull @NotNull java.util.Collection<? extends SoundEvent> sounds)
sounds - The sound events@Contract(value="-> new") @NotNull @NotNull SoundRegistry build()