# OptionsHelper.VideoOptionsHelper

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

Graphics and display settings.  
 ```js
const options = Client.getGameOptions();  
options.video.getGraphicsMode();  
 ```

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

## Constructors

### new OptionsHelper.VideoOptionsHelper {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_constructor-OptionsHelper-}

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

Stores the supplied parent reference; settings methods use the enclosing `OptionsHelper` instance, which may differ.

**Parameters:**
- `OptionsHelper`: parent helper reference to retain

## Fields

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

```js
parent: OptionsHelper
```

The [OptionsHelper](OptionsHelper.md) that owns this settings group; this is the same object returned by
[getParent()](#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getParent-).

**Since:** 1.8.4

## Methods

### areEntityShadowsEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_areEntityShadowsEnabled-}

```js
areEntityShadowsEnabled(): boolean
```

**Returns:** `true` if entity shadows are enabled; `false` otherwise.

**Since:** 1.8.4

### enableAutosaveIndicator {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_enableAutosaveIndicator-boolean-}

```js
enableAutosaveIndicator(boolean val): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `val`: whether to show the autosave indicator

**Returns:** this helper for chaining.

**Since:** 1.8.4

### enableEntityShadows {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_enableEntityShadows-boolean-}

```js
enableEntityShadows(boolean val): OptionsHelper.VideoOptionsHelper
```

Enables or disables entity shadows.

**Parameters:**
- `val`: whether to enable entity shadows

**Returns:** this helper for chaining.

**Since:** 1.8.4

### enableViewBobbing {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_enableViewBobbing-boolean-}

```js
enableViewBobbing(boolean val): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `val`: `true` to enable view bobbing; `false` to disable it

**Returns:** self for chaining.

**Since:** 1.8.4

### enableVsync {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_enableVsync-boolean-}

```js
enableVsync(boolean val): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `val`: `true` to enable vsync; `false` to disable it

**Returns:** self for chaining.

**Since:** 1.8.4

### getAttackIndicatorType {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getAttackIndicatorType-}

```js
getAttackIndicatorType(): String
```

**Returns:** `"off"`, `"crosshair"`, or `"hotbar"`, according to the selected
        attack indicator

**Since:** 1.8.4

### getBiomeBlendRadius {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getBiomeBlendRadius-}

```js
getBiomeBlendRadius(): int
```

**Returns:** the current biome blend radius, in blocks.

**Since:** 1.8.4

### getBrightness {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getBrightness-}

```js
getBrightness(): double
```

**Returns:** the current brightness value.

**Since:** 1.8.4

### getChunkBuilderMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getChunkBuilderMode-}

```js
getChunkBuilderMode(): String
```

**Returns:** the selected chunk builder mode.

**Since:** 1.8.4

### getCloudsMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getCloudsMode-}

```js
getCloudsMode(): String
```

**Returns:** the current cloud rendering mode.

**Since:** 1.8.4

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

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

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

**Since:** 1.8.4

### getEntityDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getEntityDistance-}

```js
getEntityDistance(): double
```

**Returns:** the current entity-distance scaling value.

**Since:** 1.8.4

### getFovEffects {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getFovEffects-}

```js
getFovEffects(): double
```

**Returns:** the current field-of-view effect scale.

**Since:** 1.8.4

### getFullscreenResolution {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getFullscreenResolution-}

```js
getFullscreenResolution(): String
```

**Returns:** the configured fullscreen video mode string, such as `1920x1080@60:24`
(width x height @ refresh rate : total color bits), or `null` if none is configured;  
this may not match the active display mode

**Since:** 1.8.4

### getGamma {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getGamma-}

```js
getGamma(): double
```

**Returns:** the current brightness (gamma) value.

**Since:** 1.8.4

### getGraphicsMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getGraphicsMode-}

```js
getGraphicsMode(): String
```

Returns the selected graphics mode name.

**Returns:** `"fast"`, `"fancy"`, or `"fabulous"`; an unrecognized stored mode throws `IllegalArgumentException`.

### getGuiScale {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getGuiScale-}

```js
getGuiScale(): int
```

**Returns:** the configured GUI scale factor; Minecraft may calculate a different effective scale
        to fit the display.

**Since:** 1.8.4

### getMaxFps {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getMaxFps-}

```js
getMaxFps(): int
```

**Returns:** the current upper fps limit.

**Since:** 1.8.4

### getMipMapLevels {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getMipMapLevels-}

```js
getMipMapLevels(): int
```

**Returns:** the current mip map level.

**Since:** 1.8.4

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

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

**Returns:** the parent options helper.

**Since:** 1.8.4

### getParticleMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getParticleMode-}

```js
getParticleMode(): String
```

**Returns:** the current particle rendering mode.

**Since:** 1.8.4

### getRenderDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getRenderDistance-}

```js
getRenderDistance(): int
```

**Returns:** the current render distance in chunks.

**Since:** 1.8.4

### getSimulationDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getSimulationDistance-}

```js
getSimulationDistance(): int
```

**Returns:** the current simulation distance in chunks.

**Since:** 1.8.4

### getSmoothLightningMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_getSmoothLightningMode-}

```js
getSmoothLightningMode(): boolean
```

**Returns:** whether ambient occlusion is enabled.

**Since:** 1.8.4

### isAutosaveIndicatorEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_isAutosaveIndicatorEnabled-}

```js
isAutosaveIndicatorEnabled(): boolean
```

**Returns:** `true` if the autosave indicator is enabled; `false` otherwise.

**Since:** 1.8.4

### isFullscreen {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_isFullscreen-}

```js
isFullscreen(): boolean
```

**Returns:** `true` if the game is running in fullscreen mode, `false` otherwise.

**Since:** 1.8.4

### isViewBobbingEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_isViewBobbingEnabled-}

```js
isViewBobbingEnabled(): boolean
```

**Returns:** `true` if view bobbing is enabled, `false` otherwise.

**Since:** 1.8.4

### isVsyncEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_isVsyncEnabled-}

```js
isVsyncEnabled(): boolean
```

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

**Since:** 1.8.4

### setAttackIndicatorType {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setAttackIndicatorType-String-}

```js
setAttackIndicatorType(String type): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `type`: the attack indicator type: `"off"`, `"crosshair"`, or `"hotbar"`;  
            other values leave the current setting unchanged

**Returns:** self for chaining.

**Since:** 1.8.4

### setBiomeBlendRadius {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setBiomeBlendRadius-int-}

```js
setBiomeBlendRadius(int radius): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `radius`: the new biome blend radius, in blocks

**Returns:** self for chaining.

**Since:** 1.8.4

### setBrightness {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setBrightness-double-}

```js
setBrightness(double gamma): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `gamma`: the brightness (gamma) value to set

**Returns:** self for chaining.

**Since:** 1.8.4

### setChunkBuilderMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setChunkBuilderMode-String-}

```js
setChunkBuilderMode(String mode): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `mode`: the chunk builder mode; `"none"`, `"nearby"`, or
            `"player_affected"`, case-insensitively. Other values leave the
            current mode unchanged.

**Returns:** self for chaining.

**Since:** 1.8.4

### setCloudsMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setCloudsMode-String-}

```js
setCloudsMode(String mode): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `mode`: the cloud rendering mode; accepts "off", "fast", or "fancy" (case-insensitive). Other values leave the setting unchanged

**Returns:** self for chaining.

**Since:** 1.8.4

### setDistortionEffects {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setDistortionEffects-double-}

```js
setDistortionEffects(double val): OptionsHelper.VideoOptionsHelper
```

Sets the screen-effect scale.

**Parameters:**
- `val`: the screen-effect scale to set

**Returns:** this helper for chaining.

**Since:** 1.8.4

### setEntityDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setEntityDistance-double-}

```js
setEntityDistance(double val): OptionsHelper.VideoOptionsHelper
```

Sets the entity-distance scaling value.

**Parameters:**
- `val`: the scaling value to set

**Returns:** this helper for chaining.

**Since:** 1.8.4

### setFovEffects {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setFovEffects-double-}

```js
setFovEffects(double val): OptionsHelper.VideoOptionsHelper
```

Sets the field-of-view effect scale.

**Parameters:**
- `val`: the scale to set

**Returns:** this helper for chaining.

**Since:** 1.8.4

### setFullScreen {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setFullScreen-boolean-}

```js
setFullScreen(boolean fullscreen): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `fullscreen`: whether to enable fullscreen mode

**Returns:** self for chaining.

**Since:** 1.8.4

### setGamma {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setGamma-double-}

```js
setGamma(double gamma): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `gamma`: the gamma (brightness) value to set

**Returns:** self for chaining.

**Since:** 1.8.4

### setGraphicsMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setGraphicsMode-String-}

```js
setGraphicsMode(String mode): OptionsHelper.VideoOptionsHelper
```

Sets the graphics mode. Matching is case-insensitive; an unrecognized value retains the current selection but still calls the option setter.

**Parameters:**
- `mode`: non-null mode name; recognized values are `"fast"`, `"fancy"`, and `"fabulous"`

**Returns:** self for chaining

### setGuiScale {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setGuiScale-int-}

```js
setGuiScale(int scale): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `scale`: the GUI scale factor to set; Minecraft may adjust the effective scale to fit
             the display

**Returns:** self for chaining.

**Since:** 1.8.4

### setMaxFps {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setMaxFps-int-}

```js
setMaxFps(int maxFps): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `maxFps`: the maximum frame-rate limit to set

**Returns:** self for chaining.

**Since:** 1.8.4

### setMipMapLevels {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setMipMapLevels-int-}

```js
setMipMapLevels(int val): OptionsHelper.VideoOptionsHelper
```

Sets the mipmap level.

**Parameters:**
- `val`: the mipmap level to set

**Returns:** this helper for chaining.

**Since:** 1.8.4

### setParticleMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setParticleMode-String-}

```js
setParticleMode(String mode): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `mode`: the particle rendering mode; accepts "minimal", "decreased", or "all" (case-insensitive). Other values leave the setting unchanged

**Returns:** self for chaining.

**Since:** 1.8.4

### setRenderDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setRenderDistance-int-}

```js
setRenderDistance(int radius): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `radius`: the new render distance, in chunks

**Returns:** self for chaining.

**Since:** 1.8.4

### setSimulationDistance {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setSimulationDistance-int-}

```js
setSimulationDistance(int radius): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `radius`: the new simulation distance, in chunks

**Returns:** self for chaining.

**Since:** 1.8.4

### setSmoothLightningMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.VideoOptionsHelper_setSmoothLightningMode-boolean-}

```js
setSmoothLightningMode(boolean mode): OptionsHelper.VideoOptionsHelper
```

**Parameters:**
- `mode`: `true` to enable ambient occlusion; `false` to disable it

**Returns:** self for chaining.

**Since:** 1.8.4
