Beta
Provides read-only access to the sound definitions loaded for the current world.
Optional
Optional filter applied to each definition. When omitted, every definition is returned.
All sound definitions matching the filter, or every sound definition when no filter is supplied.
Returns the sound definitions in the registry, optionally narrowed by a filter.
An error will be thrown if filter.minDuration is greater than filter.maxDuration.
minecraftcommon.InvalidArgumentError
Provides read-only access to the sound definitions loaded for the current world.