# OptionsHelper.AccessibilityOptionsHelper

`com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper`

Provides accessibility settings, including narrator, subtitle, and chat-display options, on the enclosing options object.  
 ```js
const options = Client.getGameOptions();  
const accessibility = options.accessibility;  
Chat.log(accessibility.getNarratorMode());  
 ```

Nested type declared in [OptionsHelper](OptionsHelper.md).

## Constructors

### new OptionsHelper.AccessibilityOptionsHelper {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_constructor-OptionsHelper-}

```js
new OptionsHelper.AccessibilityOptionsHelper(OptionsHelper optionsHelper, OptionsHelper OptionsHelper)
```

Stores the supplied parent reference; this does not replace the options object bound to this inner group.

**Parameters:**
- `OptionsHelper`: optionshelper retained as the parent

## Fields

### parent {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_parent}

```js
parent: OptionsHelper
```

the whole options helper this group belongs to.  
 
 Each group is a view onto one part of the settings, and this is the way back to the
 rest of them, so a script that starts in a group and needs a setting from another
 does not have to keep the outer handle around separately. It is the same object the
 field was created with, and the same one the group's `getParent()` returns.  
 

 The six group fields hold the same thing, so the example on
 `SkinOptionsHelper.parent`, the first of them, covers this one too.

**Since:** 1.8.4

## Methods

### areLightningFlashesHidden {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_areLightningFlashesHidden-}

```js
areLightningFlashesHidden(): boolean
```

**Returns:** `true` if lightning flashes are hidden; `false` otherwise.

**Since:** 1.8.4

### areSubtitlesShown {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_areSubtitlesShown-}

```js
areSubtitlesShown(): boolean
```

**Returns:** `true` if subtitles are enabled.

**Since:** 1.8.4

### enableAutoJump {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_enableAutoJump-boolean-}

```js
enableAutoJump(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether to enable auto jump

**Returns:** self for chaining.

**Since:** 1.8.4

### enableBackgroundForChatOnly {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_enableBackgroundForChatOnly-boolean-}

```js
enableBackgroundForChatOnly(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether to show the text background only behind chat

**Returns:** this helper for chaining.

**Since:** 1.8.4

### enableMonochromeLogo {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_enableMonochromeLogo-boolean-}

```js
enableMonochromeLogo(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether to enable the dark Mojang Studios background

**Returns:** the current helper instance for chaining.

**Since:** 1.8.4

### getChatDelay {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getChatDelay-}

```js
getChatDelay(): double
```

**Returns:** the current chat delay in seconds.

**Since:** 1.8.4

### getChatLineSpacing {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getChatLineSpacing-}

```js
getChatLineSpacing(): double
```

**Returns:** the current chat line spacing.

**Since:** 1.8.4

### getChatOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getChatOpacity-}

```js
getChatOpacity(): double
```

**Returns:** the current chat opacity.

**Since:** 1.8.4

### getDistortionEffect {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getDistortionEffect-}

```js
getDistortionEffect(): double
```

**Returns:** the current screen distortion effect scale.

**Since:** 1.8.4

### getFovEffect {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getFovEffect-}

```js
getFovEffect(): double
```

**Returns:** the current FOV effect scale.

**Since:** 1.8.4

### getNarratorMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getNarratorMode-}

```js
getNarratorMode(): String
```

**Returns:** the current narrator mode.

**Since:** 1.8.4

### getParent {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getParent-}

```js
getParent(): OptionsHelper
```

**Returns:** the parent options helper.

**Since:** 1.8.4

### getTextBackgroundOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_getTextBackgroundOpacity-}

```js
getTextBackgroundOpacity(): double
```

**Returns:** the opacity of the text background.

**Since:** 1.8.4

### isAutoJumpEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_isAutoJumpEnabled-}

```js
isAutoJumpEnabled(): boolean
```

**Returns:** `true` if auto jump is enabled, `false` otherwise.

**Since:** 1.8.4

### isBackgroundForChatOnly {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_isBackgroundForChatOnly-}

```js
isBackgroundForChatOnly(): boolean
```

**Returns:** `true` if the text background is shown only behind chat.

**Since:** 1.8.4

### isMonochromeLogoEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_isMonochromeLogoEnabled-}

```js
isMonochromeLogoEnabled(): boolean
```

**Returns:** `true` if the dark Mojang Studios background is enabled; `false` otherwise.

**Since:** 1.8.4

### isSneakTogglingEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_isSneakTogglingEnabled-}

```js
isSneakTogglingEnabled(): boolean
```

**Returns:** `true` if the toggle functionality for sneaking is enabled, `false`
 otherwise.

**Since:** 1.8.4

### isSprintTogglingEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_isSprintTogglingEnabled-}

```js
isSprintTogglingEnabled(): boolean
```

**Returns:** `true` if sprinting uses toggle behavior; `false` otherwise.

**Since:** 1.8.4

### setChatDelay {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setChatDelay-double-}

```js
setChatDelay(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new chat delay in seconds

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatLineSpacing {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setChatLineSpacing-double-}

```js
setChatLineSpacing(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new chat line spacing

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setChatOpacity-double-}

```js
setChatOpacity(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new chat opacity

**Returns:** self for chaining.

**Since:** 1.8.4

### setDistortionEffect {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setDistortionEffect-double-}

```js
setDistortionEffect(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new screen distortion effect scale

**Returns:** self for chaining.

**Since:** 1.8.4

### setFovEffect {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setFovEffect-double-}

```js
setFovEffect(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new FOV effect scale

**Returns:** self for chaining.

**Since:** 1.8.4

### setFovEffect {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setFovEffect-boolean-}

```js
setFovEffect(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

Sets the FOV effect scale to `1.0` when enabled or `0.0` when disabled.  
 Use [setFovEffect(double)](#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setFovEffect-double-) to set an intermediate scale.

**Parameters:**
- `val`: whether to enable FOV effects at full scale

**Returns:** self for chaining.

**Since:** 1.8.4

### setNarratorMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setNarratorMode-String-}

```js
setNarratorMode(String mode): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `mode`: the narrator mode: `"OFF"`, `"ALL"`, `"CHAT"`, or
             `"SYSTEM"` (case-insensitive); other values leave the current mode unchanged.

**Returns:** self for chaining.

**Since:** 1.8.4

### setTextBackgroundOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_setTextBackgroundOpacity-double-}

```js
setTextBackgroundOpacity(double val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: the new opacity for the text background

**Returns:** self for chaining.

**Since:** 1.8.4

### showSubtitles {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_showSubtitles-boolean-}

```js
showSubtitles(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether to show subtitles or not

**Returns:** self for chaining.

**Since:** 1.8.4

### toggleSneak {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_toggleSneak-boolean-}

```js
toggleSneak(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether sneaking uses toggle behavior

**Returns:** self for chaining.

**Since:** 1.8.4

### toggleSprint {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.AccessibilityOptionsHelper_toggleSprint-boolean-}

```js
toggleSprint(boolean val): OptionsHelper.AccessibilityOptionsHelper
```

**Parameters:**
- `val`: whether sprinting uses toggle behavior

**Returns:** self for chaining.

**Since:** 1.8.4
