Class GameSettings


  • public class GameSettings
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • GSON

        private static final com.google.gson.Gson GSON
      • RESOURCE_PACK_TYPE

        private static final com.google.gson.reflect.TypeToken<java.util.List<java.lang.String>> RESOURCE_PACK_TYPE
      • OPTION_SPLITTER

        private static final com.google.common.base.Splitter OPTION_SPLITTER
      • sensitivity

        public double sensitivity
      • renderDistance

        public int renderDistance
      • entityDistanceScaling

        public float entityDistanceScaling
      • framerateLimit

        public int framerateLimit
      • resourcePacks

        public java.util.List<java.lang.String> resourcePacks
      • incompatibleResourcePacks

        public java.util.List<java.lang.String> incompatibleResourcePacks
      • chatOpacity

        public double chatOpacity
      • chatLineSpacing

        public double chatLineSpacing
      • textBackgroundOpacity

        public double textBackgroundOpacity
      • fullscreenVideoModeString

        @Nullable
        public java.lang.String fullscreenVideoModeString
      • hideServerAddress

        public boolean hideServerAddress
      • advancedItemTooltips

        public boolean advancedItemTooltips
      • pauseOnLostFocus

        public boolean pauseOnLostFocus
      • overrideWidth

        public int overrideWidth
      • overrideHeight

        public int overrideHeight
      • heldItemTooltips

        public boolean heldItemTooltips
      • chatScale

        public double chatScale
      • chatWidth

        public double chatWidth
      • chatHeightUnfocused

        public double chatHeightUnfocused
      • chatHeightFocused

        public double chatHeightFocused
      • chatDelay

        public double chatDelay
      • mipmapLevels

        public int mipmapLevels
      • sourceVolumes

        private final java.util.Map<SoundCategory,​java.lang.Float> sourceVolumes
      • useNativeTransport

        public boolean useNativeTransport
      • joinedFirstServer

        public boolean joinedFirstServer
      • biomeBlendRadius

        public int biomeBlendRadius
      • mouseWheelSensitivity

        public double mouseWheelSensitivity
      • rawMouseInput

        public boolean rawMouseInput
      • glDebugVerbosity

        public int glDebugVerbosity
      • autoJump

        public boolean autoJump
      • autoSuggestions

        public boolean autoSuggestions
      • chatColors

        public boolean chatColors
      • chatLinks

        public boolean chatLinks
      • chatLinksPrompt

        public boolean chatLinksPrompt
      • enableVsync

        public boolean enableVsync
      • entityShadows

        public boolean entityShadows
      • forceUnicodeFont

        public boolean forceUnicodeFont
      • invertYMouse

        public boolean invertYMouse
      • discreteMouseScroll

        public boolean discreteMouseScroll
      • realmsNotifications

        public boolean realmsNotifications
      • reducedDebugInfo

        public boolean reducedDebugInfo
      • snooperEnabled

        public boolean snooperEnabled
      • showSubtitles

        public boolean showSubtitles
      • backgroundForChatOnly

        public boolean backgroundForChatOnly
      • touchscreen

        public boolean touchscreen
      • fullscreen

        public boolean fullscreen
      • bobView

        public boolean bobView
      • toggleCrouch

        public boolean toggleCrouch
      • toggleSprint

        public boolean toggleSprint
      • skipMultiplayerWarning

        public boolean skipMultiplayerWarning
      • hideMatchedNames

        public boolean hideMatchedNames
      • keyInventory

        public final KeyBinding keyInventory
      • keySwapOffhand

        public final KeyBinding keySwapOffhand
      • keyPickItem

        public final KeyBinding keyPickItem
      • keyPlayerList

        public final KeyBinding keyPlayerList
      • keySocialInteractions

        public final KeyBinding keySocialInteractions
      • keyScreenshot

        public final KeyBinding keyScreenshot
      • keyTogglePerspective

        public final KeyBinding keyTogglePerspective
      • keySmoothCamera

        public final KeyBinding keySmoothCamera
      • keyFullscreen

        public final KeyBinding keyFullscreen
      • keySpectatorOutlines

        public final KeyBinding keySpectatorOutlines
      • keyAdvancements

        public final KeyBinding keyAdvancements
      • keyHotbarSlots

        public final KeyBinding[] keyHotbarSlots
      • keySaveHotbarActivator

        public final KeyBinding keySaveHotbarActivator
      • keyLoadHotbarActivator

        public final KeyBinding keyLoadHotbarActivator
      • optionsFile

        private final java.io.File optionsFile
      • hideGui

        public boolean hideGui
      • renderDebug

        public boolean renderDebug
      • renderDebugCharts

        public boolean renderDebugCharts
      • renderFpsChart

        public boolean renderFpsChart
      • lastMpIp

        public java.lang.String lastMpIp
      • smoothCamera

        public boolean smoothCamera
      • fov

        public double fov
      • screenEffectScale

        public float screenEffectScale
      • fovEffectScale

        public float fovEffectScale
      • gamma

        public double gamma
      • guiScale

        public int guiScale
      • languageCode

        public java.lang.String languageCode
      • syncWrites

        public boolean syncWrites
    • Constructor Detail

      • GameSettings

        public GameSettings​(Minecraft p_i46326_1_,
                            java.io.File p_i46326_2_)
    • Method Detail

      • getBackgroundOpacity

        public float getBackgroundOpacity​(float p_216840_1_)
      • getBackgroundColor

        public int getBackgroundColor​(float p_216841_1_)
      • getBackgroundColor

        public int getBackgroundColor​(int p_216839_1_)
      • load

        public void load()
      • readFloat

        private static float readFloat​(java.lang.String p_74305_0_)
      • save

        public void save()
      • getSoundSourceVolume

        public float getSoundSourceVolume​(SoundCategory p_186711_1_)
      • setSoundCategoryVolume

        public void setSoundCategoryVolume​(SoundCategory p_186712_1_,
                                           float p_186712_2_)
      • broadcastOptions

        public void broadcastOptions()
      • setModelPart

        public void setModelPart​(PlayerModelPart p_178878_1_,
                                 boolean p_178878_2_)
      • toggleModelPart

        public void toggleModelPart​(PlayerModelPart p_178877_1_)
      • useNativeTransport

        public boolean useNativeTransport()
      • loadSelectedResourcePacks

        public void loadSelectedResourcePacks​(ResourcePackList p_198017_1_)
      • setForgeKeybindProperties

        private void setForgeKeybindProperties()
      • setCameraType

        public void setCameraType​(PointOfView p_243229_1_)