public class GameSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GameSettings.Options |
Constructor and Description |
---|
GameSettings() |
GameSettings(Minecraft mcIn,
java.io.File mcDataDir) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON
private static final java.lang.reflect.Type TYPE_LIST_STRING
public static final com.google.common.base.Splitter COLON_SPLITTER
private static final java.lang.String[] GUISCALES
private static final java.lang.String[] PARTICLES
private static final java.lang.String[] AMBIENT_OCCLUSIONS
private static final java.lang.String[] CLOUDS_TYPES
private static final java.lang.String[] ATTACK_INDICATORS
public static final java.lang.String[] NARRATOR_MODES
public float mouseSensitivity
public boolean invertMouse
public int renderDistanceChunks
public boolean viewBobbing
public boolean anaglyph
public boolean fboEnable
public int limitFramerate
public int clouds
public boolean fancyGraphics
public int ambientOcclusion
public java.util.List<java.lang.String> resourcePacks
public java.util.List<java.lang.String> incompatibleResourcePacks
public EntityPlayer.EnumChatVisibility chatVisibility
public boolean chatColours
public boolean chatLinks
public boolean chatLinksPrompt
public float chatOpacity
public boolean snooperEnabled
public boolean fullScreen
public boolean enableVsync
public boolean useVbo
public boolean reducedDebugInfo
public boolean hideServerAddress
public boolean advancedItemTooltips
public boolean pauseOnLostFocus
private final java.util.Set<EnumPlayerModelParts> setModelParts
public boolean touchscreen
public EnumHandSide mainHand
public int overrideWidth
public int overrideHeight
public boolean heldItemTooltips
public float chatScale
public float chatWidth
public float chatHeightUnfocused
public float chatHeightFocused
public int mipmapLevels
private final java.util.Map<SoundCategory,java.lang.Float> soundLevels
public boolean useNativeTransport
public boolean entityShadows
public int attackIndicator
public boolean enableWeakAttacks
public boolean showSubtitles
public boolean realmsNotifications
public boolean autoJump
public TutorialSteps tutorialStep
public KeyBinding keyBindForward
public KeyBinding keyBindLeft
public KeyBinding keyBindBack
public KeyBinding keyBindRight
public KeyBinding keyBindJump
public KeyBinding keyBindSneak
public KeyBinding keyBindSprint
public KeyBinding keyBindInventory
public KeyBinding keyBindSwapHands
public KeyBinding keyBindDrop
public KeyBinding keyBindUseItem
public KeyBinding keyBindAttack
public KeyBinding keyBindPickBlock
public KeyBinding keyBindChat
public KeyBinding keyBindPlayerList
public KeyBinding keyBindCommand
public KeyBinding keyBindScreenshot
public KeyBinding keyBindTogglePerspective
public KeyBinding keyBindSmoothCamera
public KeyBinding keyBindFullscreen
public KeyBinding keyBindSpectatorOutlines
public KeyBinding keyBindAdvancements
public KeyBinding[] keyBindsHotbar
public KeyBinding keyBindSaveToolbar
public KeyBinding keyBindLoadToolbar
public KeyBinding[] keyBindings
protected Minecraft mc
private java.io.File optionsFile
public EnumDifficulty difficulty
public boolean hideGUI
public int thirdPersonView
public boolean showDebugInfo
public boolean showDebugProfilerChart
public boolean showLagometer
public java.lang.String lastServer
public boolean smoothCamera
public boolean debugCamEnable
public float fovSetting
public float gammaSetting
public float saturation
public int guiScale
public int particleSetting
public int narrator
public java.lang.String language
public boolean forceUnicodeFont
private boolean needsBlockModelRefresh
public GameSettings(Minecraft mcIn, java.io.File mcDataDir)
public GameSettings()
public static java.lang.String getKeyDisplayString(int key)
public static boolean isKeyDown(KeyBinding key)
public void setOptionKeyBinding(KeyBinding key, int keyCode)
public void setOptionFloatValue(GameSettings.Options settingsOption, float value)
public void setOptionValue(GameSettings.Options settingsOption, int value)
public float getOptionFloatValue(GameSettings.Options settingOption)
public boolean getOptionOrdinalValue(GameSettings.Options settingOption)
private static java.lang.String getTranslation(java.lang.String[] strArray, int index)
public java.lang.String getKeyBinding(GameSettings.Options settingOption)
public void loadOptions()
private NBTTagCompound dataFix(NBTTagCompound p_189988_1_)
private float parseFloat(java.lang.String str)
public void saveOptions()
public float getSoundLevel(SoundCategory category)
public void setSoundLevel(SoundCategory category, float volume)
public void sendSettingsToServer()
public java.util.Set<EnumPlayerModelParts> getModelParts()
public void setModelPartEnabled(EnumPlayerModelParts modelPart, boolean enable)
public void switchModelPartEnabled(EnumPlayerModelParts modelPart)
public int shouldRenderClouds()
public boolean isUsingNativeTransport()
private void setForgeKeybindProperties()
public void onGuiClosed()