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.
Constructors
new OptionsHelper.VideoOptionsHelper
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
The OptionsHelper that owns this settings group; this is the same object returned by getParent().
Methods
areEntityShadowsEnabled
Returns:
true if entity shadows are enabled; false otherwise.enableAutosaveIndicator
Parameters:
val: whether to show the autosave indicator
Returns: this helper for chaining.
enableEntityShadows
Enables or disables entity shadows.
Parameters:
val: whether to enable entity shadows
Returns: this helper for chaining.
enableViewBobbing
Parameters:
val:trueto enable view bobbing;falseto disable it
Returns: self for chaining.
enableVsync
Parameters:
val:trueto enable vsync;falseto disable it
Returns: self for chaining.
getAttackIndicatorType
getBiomeBlendRadius
Returns: the current biome blend radius, in blocks.
getBrightness
Returns: the current brightness value.
getChunkBuilderMode
getCloudsMode
getDistortionEffect
Returns: the current screen-effect scale.
getEntityDistance
Returns: the current entity-distance scaling value.
getFovEffects
Returns: the current field-of-view effect scale.
getFullscreenResolution
getGamma
Returns: the current brightness (gamma) value.
getGraphicsMode
getGuiScale
Returns: the configured GUI scale factor; Minecraft may calculate a different effective scale to fit the display.
getMaxFps
Returns: the current upper fps limit.
getMipMapLevels
Returns: the current mip map level.
getParent
Returns: the parent options helper.
getParticleMode
getRenderDistance
Returns: the current render distance in chunks.
getSimulationDistance
Returns: the current simulation distance in chunks.
getSmoothLightningMode
Returns: whether ambient occlusion is enabled.
isAutosaveIndicatorEnabled
Returns:
true if the autosave indicator is enabled; false otherwise.isFullscreen
Returns:
true if the game is running in fullscreen mode, false otherwise.isViewBobbingEnabled
Returns:
true if view bobbing is enabled, false otherwise.isVsyncEnabled
Returns:
true if vsync is enabled, false otherwise.setAttackIndicatorType
Parameters:
type: the attack indicator type:"off","crosshair", or"hotbar"; other values leave the current setting unchanged
Returns: self for chaining.
setBiomeBlendRadius
Parameters:
radius: the new biome blend radius, in blocks
Returns: self for chaining.
setBrightness
Parameters:
gamma: the brightness (gamma) value to set
Returns: self for chaining.
setChunkBuilderMode
Parameters:
mode: the chunk builder mode;"none","nearby", or"player_affected", case-insensitively. Other values leave the current mode unchanged.
Returns: self for chaining.
setCloudsMode
Parameters:
mode: the cloud rendering mode; accepts "off", "fast", or "fancy" (case-insensitive). Other values leave the setting unchanged
Returns: self for chaining.
setDistortionEffects
Sets the screen-effect scale.
Parameters:
val: the screen-effect scale to set
Returns: this helper for chaining.
setEntityDistance
Sets the entity-distance scaling value.
Parameters:
val: the scaling value to set
Returns: this helper for chaining.
setFovEffects
Sets the field-of-view effect scale.
Parameters:
val: the scale to set
Returns: this helper for chaining.
setFullScreen
Parameters:
fullscreen: whether to enable fullscreen mode
Returns: self for chaining.
setGamma
Parameters:
gamma: the gamma (brightness) value to set
Returns: self for chaining.
setGraphicsMode
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
Parameters:
scale: the GUI scale factor to set; Minecraft may adjust the effective scale to fit the display
Returns: self for chaining.
setMaxFps
Parameters:
maxFps: the maximum frame-rate limit to set
Returns: self for chaining.
setMipMapLevels
Sets the mipmap level.
Parameters:
val: the mipmap level to set
Returns: this helper for chaining.
setParticleMode
Parameters:
mode: the particle rendering mode; accepts "minimal", "decreased", or "all" (case-insensitive). Other values leave the setting unchanged
Returns: self for chaining.
setRenderDistance
Parameters:
radius: the new render distance, in chunks
Returns: self for chaining.
setSimulationDistance
Parameters:
radius: the new simulation distance, in chunks
Returns: self for chaining.
setSmoothLightningMode
Parameters:
mode:trueto enable ambient occlusion;falseto disable it
Returns: self for chaining.