Package net.minecraft.src
Class GameSettings
java.lang.Object
net.minecraft.src.GameSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to show advanced information on item tooltips, toggled by F3+HbooleanAdvanced OpenGLintSmooth LightingbooleanbooleanbooleanfloatfloatbooleanbooleanfloatfloatintfloatbooleanClouds flagbooleanfloatChange rate for debug camerabyteHolds the current state of the debug screen as a byte (1=statistics, 2=graphs, 4=profiler chart; 3=statistics + graphs, etc...)intbooleanbooleanbooleanfloatbooleanfloatintGUI scalebooleanbooleanbooleanbooleanGame settings languageThe lastServer string.intprotected MinecraftfloatfloatbooleanNo clipping for singleplayerfloatNo clipping movement rateintintintDetermines amount of particles. 0 = All, 1 = Decreased, 2 = MinimalbooleanWhether to pause when the game loses focus, toggled by F3+Pintbooleanstatic final bytestatic final bytestatic final bytebooleanWhether to show your capeThe name of the selected texture pack.booleanSmooth Camera Togglebooleanfloatintbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeyBinding(EnumOptions par1EnumOptions) Gets a key binding.getKeyBindingDescription(int par1) static StringgetKeyDisplayString(int par0) Represents a key or mouse button as a string.getOptionDisplayString(int par1) The string that appears inside the button/slider in the options menu.floatgetOptionFloatValue(EnumOptions par1EnumOptions) booleangetOptionOrdinalValue(EnumOptions par1EnumOptions) static booleanisKeyDown(KeyBinding par0KeyBinding) Returns whether the specified key binding is currently being pressed.voidLoads the options from the options file.voidSaves the options to the options file.voidSend a client info packet with settings information to the servervoidsetKeyBinding(int par1, int par2) Sets a key binding.voidsetOptionFloatValue(EnumOptions par1EnumOptions, float par2) If the specified option is controlled by a slider (float value), this will set the float value.voidsetOptionValue(EnumOptions par1EnumOptions, int par2) For non-float options.booleanShould render clouds
-
Field Details
-
musicVolume
public float musicVolume -
soundVolume
public float soundVolume -
mouseSensitivity
public float mouseSensitivity -
invertMouse
public boolean invertMouse -
renderDistance
public int renderDistance -
viewBobbing
public boolean viewBobbing -
anaglyph
public boolean anaglyph -
advancedOpengl
public boolean advancedOpenglAdvanced OpenGL -
limitFramerate
public int limitFramerate -
fancyGraphics
public boolean fancyGraphics -
ambientOcclusion
public int ambientOcclusionSmooth Lighting -
clouds
public boolean cloudsClouds flag -
skin
The name of the selected texture pack. -
chatVisibility
public int chatVisibility -
chatColours
public boolean chatColours -
chatLinks
public boolean chatLinks -
chatLinksPrompt
public boolean chatLinksPrompt -
chatOpacity
public float chatOpacity -
serverTextures
public boolean serverTextures -
snooperEnabled
public boolean snooperEnabled -
fullScreen
public boolean fullScreen -
borderlessFullscreen
public boolean borderlessFullscreen -
enableVsync
public boolean enableVsync -
hideServerAddress
public boolean hideServerAddress -
advancedItemTooltips
public boolean advancedItemTooltipsWhether to show advanced information on item tooltips, toggled by F3+H -
pauseOnLostFocus
public boolean pauseOnLostFocusWhether to pause when the game loses focus, toggled by F3+P -
showCape
public boolean showCapeWhether to show your cape -
touchscreen
public boolean touchscreen -
overrideWidth
public int overrideWidth -
overrideHeight
public int overrideHeight -
heldItemTooltips
public boolean heldItemTooltips -
chatScale
public float chatScale -
chatWidth
public float chatWidth -
chatHeightUnfocused
public float chatHeightUnfocused -
chatHeightFocused
public float chatHeightFocused -
keyBindForward
-
keyBindLeft
-
keyBindBack
-
keyBindRight
-
keyBindJump
-
keyBindInventory
-
keyBindDrop
-
keyBindChat
-
keyBindSneak
-
keyBindAttack
-
keyBindUseItem
-
keyBindPlayerList
-
keyBindPickBlock
-
keyBindCommand
-
keyBindSpecial
-
keyBindAchievements
-
keyBindings
-
mc
-
difficulty
public int difficulty -
hideGUI
public boolean hideGUI -
thirdPersonView
public int thirdPersonView -
debugScreenState
public byte debugScreenStateHolds the current state of the debug screen as a byte (1=statistics, 2=graphs, 4=profiler chart; 3=statistics + graphs, etc...) -
SHOW_DEBUG_STATS
public static final byte SHOW_DEBUG_STATS- See Also:
-
SHOW_DEBUG_GRAPHS
public static final byte SHOW_DEBUG_GRAPHS- See Also:
-
SHOW_DEBUG_PIE_CHART
public static final byte SHOW_DEBUG_PIE_CHART- See Also:
-
extendedDebugInfo
public boolean extendedDebugInfo -
lastServer
The lastServer string. -
noclip
public boolean noclipNo clipping for singleplayer -
smoothCamera
public boolean smoothCameraSmooth Camera Toggle -
debugCamEnable
public boolean debugCamEnable -
noclipRate
public float noclipRateNo clipping movement rate -
debugCamRate
public float debugCamRateChange rate for debug camera -
fovSetting
public float fovSetting -
gammaSetting
public float gammaSetting -
guiScale
public int guiScaleGUI scale -
particleSetting
public int particleSettingDetermines amount of particles. 0 = All, 1 = Decreased, 2 = Minimal -
language
Game settings language
-
-
Constructor Details
-
GameSettings
-
GameSettings
public GameSettings()
-
-
Method Details
-
getKeyBindingDescription
-
getOptionDisplayString
The string that appears inside the button/slider in the options menu. -
getKeyDisplayString
Represents a key or mouse button as a string. Args: key -
isKeyDown
Returns whether the specified key binding is currently being pressed. -
setKeyBinding
public void setKeyBinding(int par1, int par2) Sets a key binding. -
setOptionFloatValue
If the specified option is controlled by a slider (float value), this will set the float value. -
setOptionValue
For non-float options. Toggles the option on/off, or cycles through the list i.e. render distances. -
getOptionFloatValue
-
getOptionOrdinalValue
-
getKeyBinding
Gets a key binding. -
loadOptions
public void loadOptions()Loads the options from the options file. It appears that this has replaced the previous 'loadOptions' -
saveOptions
public void saveOptions()Saves the options to the options file. -
sendSettingsToServer
public void sendSettingsToServer()Send a client info packet with settings information to the server -
shouldRenderClouds
public boolean shouldRenderClouds()Should render clouds
-