@minecraft/server
    Preparing search index...

    Class AimAssistPresetSettingsBeta

    Settings used with AimAssistRegistry.addPreset for creation of the AimAssistPreset.

    Index

    Constructors

    • Beta

      Parameters

      • identifier: string

      Returns AimAssistPresetSettings

      Constructor that takes a unique Id to associate with the created AimAssistPreset. Must have a namespace.

    Properties

    defaultItemSettings?: string

    Optional. Default aim-assist category Id used for items not provided to setItemSettings.

    This property can't be edited in read-only mode.

    handSettings?: string

    Optional. Aim-assist category Id used for an empty hand.

    This property can't be edited in read-only mode.

    identifier: string

    The unique Id used to register the preset with. Must have a namespace.

    Methods

    • Beta

      Returns undefined | string[]

      The array of block/entity Ids.

      Gets the list of block/entity Ids to exclude from aim assist targeting.

    • Beta

      Returns Record<string, string>

      The record mapping item Ids to aim-assist category Ids.

      Gets the per-item aim-assist category Ids.

    • Beta

      Returns undefined | string[]

      The array of item Ids.

      Gets the list of item Ids that will target liquid blocks with aim-assist when being held.

    • Beta

      Parameters

      • Optionaltargets: string[]

        An array of block/entity Ids.

      Returns void

      Sets the list of block/entity Ids to exclude from aim assist targeting.

      This function can't be called in read-only mode.

    • Beta

      Parameters

      • itemSettings: Record<string, string>

        A record mapping item Ids to aim-assist category Ids. Category Ids must have a namespace.

      Returns void

      Sets the per-item aim-assist category Ids.

      This function can't be called in read-only mode.

    • Beta

      Parameters

      • Optionalitems: string[]

        An array of item Ids.

      Returns void

      Sets the list of item Ids that will target liquid blocks with aim-assist when being held.

      This function can't be called in read-only mode.