@minecraft/server
    Preparing search index...

    Class SoundDefinitionRegistryBeta

    Provides read-only access to the sound definitions loaded for the current world.

    Index

    Methods

    • Beta

      Parameters

      • Optionalfilter: SoundDefinitionFilter

        Optional filter applied to each definition. When omitted, every definition is returned.

      Returns SoundDefinition[]

      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