YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.settings.GameSettings Class Reference

Public Member Functions

 GameSettings (Minecraft par1Minecraft, File par2File)
 
 GameSettings ()
 
String getKeyBindingDescription (int par1)
 
String getOptionDisplayString (int par1)
 
void setKeyBinding (int par1, int par2)
 
void setOptionFloatValue (EnumOptions par1EnumOptions, float par2)
 
void setOptionValue (EnumOptions par1EnumOptions, int par2)
 
float getOptionFloatValue (EnumOptions par1EnumOptions)
 
boolean getOptionOrdinalValue (EnumOptions par1EnumOptions)
 
String getKeyBinding (EnumOptions par1EnumOptions)
 
void loadOptions ()
 
void saveOptions ()
 
void sendSettingsToServer ()
 
boolean shouldRenderClouds ()
 

Static Public Member Functions

static String getKeyDisplayString (int par0)
 
static boolean isKeyDown (KeyBinding par0KeyBinding)
 

Public Attributes

float musicVolume = 1.0F
 
float soundVolume = 1.0F
 
float mouseSensitivity = 0.5F
 
boolean invertMouse = false
 
int renderDistance = 0
 
boolean viewBobbing = true
 
boolean anaglyph = false
 
boolean advancedOpengl = false
 
int limitFramerate = 1
 
boolean fancyGraphics = true
 
int ambientOcclusion = 2
 
boolean clouds = true
 
String skin = "Default"
 
int chatVisibility = 0
 
boolean chatColours = true
 
boolean chatLinks = true
 
boolean chatLinksPrompt = true
 
float chatOpacity = 1.0F
 
boolean serverTextures = true
 
boolean snooperEnabled = true
 
boolean fullScreen = false
 
boolean enableVsync = true
 
boolean hideServerAddress = false
 
boolean advancedItemTooltips = false
 
boolean pauseOnLostFocus = true
 
boolean showCape = true
 
boolean touchscreen = false
 
int overrideWidth = 0
 
int overrideHeight = 0
 
boolean heldItemTooltips = true
 
float chatScale = 1.0F
 
float chatWidth = 1.0F
 
float chatHeightUnfocused = 0.44366196F
 
float chatHeightFocused = 1.0F
 
KeyBinding keyBindForward = new KeyBinding("key.forward", 17)
 
KeyBinding keyBindLeft = new KeyBinding("key.left", 30)
 
KeyBinding keyBindBack = new KeyBinding("key.back", 31)
 
KeyBinding keyBindRight = new KeyBinding("key.right", 32)
 
KeyBinding keyBindJump = new KeyBinding("key.jump", 57)
 
KeyBinding keyBindInventory = new KeyBinding("key.inventory", 18)
 
KeyBinding keyBindDrop = new KeyBinding("key.drop", 16)
 
KeyBinding keyBindChat = new KeyBinding("key.chat", 20)
 
KeyBinding keyBindSneak = new KeyBinding("key.sneak", 42)
 
KeyBinding keyBindAttack = new KeyBinding("key.attack", -100)
 
KeyBinding keyBindUseItem = new KeyBinding("key.use", -99)
 
KeyBinding keyBindPlayerList = new KeyBinding("key.playerlist", 15)
 
KeyBinding keyBindPickBlock = new KeyBinding("key.pickItem", -98)
 
KeyBinding keyBindCommand = new KeyBinding("key.command", 53)
 
KeyBinding[] keyBindings
 
int difficulty
 
boolean hideGUI
 
int thirdPersonView
 
boolean showDebugInfo
 
boolean showDebugProfilerChart
 
String lastServer
 
boolean noclip
 
boolean smoothCamera
 
boolean debugCamEnable
 
float noclipRate
 
float debugCamRate
 
float fovSetting
 
float gammaSetting
 
int guiScale
 
int particleSetting
 
String language
 

Protected Attributes

Minecraft mc
 

Constructor & Destructor Documentation

net.minecraft.client.settings.GameSettings.GameSettings ( Minecraft  par1Minecraft,
File  par2File 
)
net.minecraft.client.settings.GameSettings.GameSettings ( )

Member Function Documentation

String net.minecraft.client.settings.GameSettings.getKeyBinding ( EnumOptions  par1EnumOptions)

Gets a key binding.

String net.minecraft.client.settings.GameSettings.getKeyBindingDescription ( int  par1)
static String net.minecraft.client.settings.GameSettings.getKeyDisplayString ( int  par0)
static

Represents a key or mouse button as a string. Args: key

String net.minecraft.client.settings.GameSettings.getOptionDisplayString ( int  par1)

The string that appears inside the button/slider in the options menu.

float net.minecraft.client.settings.GameSettings.getOptionFloatValue ( EnumOptions  par1EnumOptions)
boolean net.minecraft.client.settings.GameSettings.getOptionOrdinalValue ( EnumOptions  par1EnumOptions)
static boolean net.minecraft.client.settings.GameSettings.isKeyDown ( KeyBinding  par0KeyBinding)
static

Returns whether the specified key binding is currently being pressed.

void net.minecraft.client.settings.GameSettings.loadOptions ( )

Loads the options from the options file. It appears that this has replaced the previous 'loadOptions'

void net.minecraft.client.settings.GameSettings.saveOptions ( )

Saves the options to the options file.

void net.minecraft.client.settings.GameSettings.sendSettingsToServer ( )

Send a client info packet with settings information to the server

void net.minecraft.client.settings.GameSettings.setKeyBinding ( int  par1,
int  par2 
)

Sets a key binding.

void net.minecraft.client.settings.GameSettings.setOptionFloatValue ( EnumOptions  par1EnumOptions,
float  par2 
)

If the specified option is controlled by a slider (float value), this will set the float value.

void net.minecraft.client.settings.GameSettings.setOptionValue ( EnumOptions  par1EnumOptions,
int  par2 
)

For non-float options. Toggles the option on/off, or cycles through the list i.e. render distances.

boolean net.minecraft.client.settings.GameSettings.shouldRenderClouds ( )

Should render clouds

Member Data Documentation

boolean net.minecraft.client.settings.GameSettings.advancedItemTooltips = false

Whether to show advanced information on item tooltips, toggled by F3+H

boolean net.minecraft.client.settings.GameSettings.advancedOpengl = false

Advanced OpenGL

int net.minecraft.client.settings.GameSettings.ambientOcclusion = 2

Smooth Lighting

boolean net.minecraft.client.settings.GameSettings.anaglyph = false
boolean net.minecraft.client.settings.GameSettings.chatColours = true
float net.minecraft.client.settings.GameSettings.chatHeightFocused = 1.0F
float net.minecraft.client.settings.GameSettings.chatHeightUnfocused = 0.44366196F
boolean net.minecraft.client.settings.GameSettings.chatLinks = true
boolean net.minecraft.client.settings.GameSettings.chatLinksPrompt = true
float net.minecraft.client.settings.GameSettings.chatOpacity = 1.0F
float net.minecraft.client.settings.GameSettings.chatScale = 1.0F
int net.minecraft.client.settings.GameSettings.chatVisibility = 0
float net.minecraft.client.settings.GameSettings.chatWidth = 1.0F
boolean net.minecraft.client.settings.GameSettings.clouds = true

Clouds flag

boolean net.minecraft.client.settings.GameSettings.debugCamEnable
float net.minecraft.client.settings.GameSettings.debugCamRate

Change rate for debug camera

int net.minecraft.client.settings.GameSettings.difficulty
boolean net.minecraft.client.settings.GameSettings.enableVsync = true
boolean net.minecraft.client.settings.GameSettings.fancyGraphics = true
float net.minecraft.client.settings.GameSettings.fovSetting
boolean net.minecraft.client.settings.GameSettings.fullScreen = false
float net.minecraft.client.settings.GameSettings.gammaSetting
int net.minecraft.client.settings.GameSettings.guiScale

GUI scale

boolean net.minecraft.client.settings.GameSettings.heldItemTooltips = true
boolean net.minecraft.client.settings.GameSettings.hideGUI
boolean net.minecraft.client.settings.GameSettings.hideServerAddress = false
boolean net.minecraft.client.settings.GameSettings.invertMouse = false
KeyBinding net.minecraft.client.settings.GameSettings.keyBindAttack = new KeyBinding("key.attack", -100)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindBack = new KeyBinding("key.back", 31)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindChat = new KeyBinding("key.chat", 20)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindCommand = new KeyBinding("key.command", 53)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindDrop = new KeyBinding("key.drop", 16)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindForward = new KeyBinding("key.forward", 17)
KeyBinding [] net.minecraft.client.settings.GameSettings.keyBindings
KeyBinding net.minecraft.client.settings.GameSettings.keyBindInventory = new KeyBinding("key.inventory", 18)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindJump = new KeyBinding("key.jump", 57)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindLeft = new KeyBinding("key.left", 30)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindPickBlock = new KeyBinding("key.pickItem", -98)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindPlayerList = new KeyBinding("key.playerlist", 15)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindRight = new KeyBinding("key.right", 32)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindSneak = new KeyBinding("key.sneak", 42)
KeyBinding net.minecraft.client.settings.GameSettings.keyBindUseItem = new KeyBinding("key.use", -99)
String net.minecraft.client.settings.GameSettings.language

Game settings language

String net.minecraft.client.settings.GameSettings.lastServer

The lastServer string.

int net.minecraft.client.settings.GameSettings.limitFramerate = 1
Minecraft net.minecraft.client.settings.GameSettings.mc
protected
float net.minecraft.client.settings.GameSettings.mouseSensitivity = 0.5F
float net.minecraft.client.settings.GameSettings.musicVolume = 1.0F
boolean net.minecraft.client.settings.GameSettings.noclip

No clipping for singleplayer

float net.minecraft.client.settings.GameSettings.noclipRate

No clipping movement rate

int net.minecraft.client.settings.GameSettings.overrideHeight = 0
int net.minecraft.client.settings.GameSettings.overrideWidth = 0
int net.minecraft.client.settings.GameSettings.particleSetting

Determines amount of particles. 0 = All, 1 = Decreased, 2 = Minimal

boolean net.minecraft.client.settings.GameSettings.pauseOnLostFocus = true

Whether to pause when the game loses focus, toggled by F3+P

int net.minecraft.client.settings.GameSettings.renderDistance = 0
boolean net.minecraft.client.settings.GameSettings.serverTextures = true
boolean net.minecraft.client.settings.GameSettings.showCape = true

Whether to show your cape

boolean net.minecraft.client.settings.GameSettings.showDebugInfo

true if debug info should be displayed instead of version

boolean net.minecraft.client.settings.GameSettings.showDebugProfilerChart
String net.minecraft.client.settings.GameSettings.skin = "Default"

The name of the selected texture pack.

boolean net.minecraft.client.settings.GameSettings.smoothCamera

Smooth Camera Toggle

boolean net.minecraft.client.settings.GameSettings.snooperEnabled = true
float net.minecraft.client.settings.GameSettings.soundVolume = 1.0F
int net.minecraft.client.settings.GameSettings.thirdPersonView
boolean net.minecraft.client.settings.GameSettings.touchscreen = false
boolean net.minecraft.client.settings.GameSettings.viewBobbing = true

The documentation for this class was generated from the following file: