Class Options

java.lang.Object
net.minecraft.client.Options

public class Options extends Object
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • GSON

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

      private static final com.google.gson.reflect.TypeToken<List<String>> RESOURCE_PACK_TYPE
    • RENDER_DISTANCE_TINY

      public static final int RENDER_DISTANCE_TINY
      See Also:
    • RENDER_DISTANCE_SHORT

      public static final int RENDER_DISTANCE_SHORT
      See Also:
    • RENDER_DISTANCE_NORMAL

      public static final int RENDER_DISTANCE_NORMAL
      See Also:
    • RENDER_DISTANCE_FAR

      public static final int RENDER_DISTANCE_FAR
      See Also:
    • RENDER_DISTANCE_REALLY_FAR

      public static final int RENDER_DISTANCE_REALLY_FAR
      See Also:
    • RENDER_DISTANCE_EXTREME

      public static final int RENDER_DISTANCE_EXTREME
      See Also:
    • OPTION_SPLITTER

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

      private static final float DEFAULT_VOLUME
      See Also:
    • DEFAULT_SOUND_DEVICE

      public static final String DEFAULT_SOUND_DEVICE
      See Also:
    • darkMojangStudiosBackground

      public boolean darkMojangStudiosBackground
    • hideLightningFlashes

      public boolean hideLightningFlashes
    • sensitivity

      public double sensitivity
    • renderDistance

      public int renderDistance
    • simulationDistance

      public int simulationDistance
    • serverRenderDistance

      private int serverRenderDistance
    • entityDistanceScaling

      public float entityDistanceScaling
    • framerateLimit

      public int framerateLimit
    • renderClouds

      public CloudStatus renderClouds
    • graphicsMode

      public GraphicsStatus graphicsMode
    • ambientOcclusion

      public AmbientOcclusionStatus ambientOcclusion
    • prioritizeChunkUpdates

      public PrioritizeChunkUpdates prioritizeChunkUpdates
    • resourcePacks

      public List<String> resourcePacks
    • incompatibleResourcePacks

      public List<String> incompatibleResourcePacks
    • chatVisibility

      public ChatVisiblity chatVisibility
    • chatOpacity

      public double chatOpacity
    • chatLineSpacing

      public double chatLineSpacing
    • textBackgroundOpacity

      public double textBackgroundOpacity
    • fullscreenVideoModeString

      @Nullable public String fullscreenVideoModeString
    • hideServerAddress

      public boolean hideServerAddress
    • advancedItemTooltips

      public boolean advancedItemTooltips
    • pauseOnLostFocus

      public boolean pauseOnLostFocus
    • modelParts

      private final Set<PlayerModelPart> modelParts
    • mainHand

      public HumanoidArm mainHand
    • 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 it.unimi.dsi.fastutil.objects.Object2FloatMap<SoundSource> sourceVolumes
    • useNativeTransport

      public boolean useNativeTransport
    • attackIndicator

      public AttackIndicatorStatus attackIndicator
    • tutorialStep

      public TutorialSteps tutorialStep
    • joinedFirstServer

      public boolean joinedFirstServer
    • hideBundleTutorial

      public boolean hideBundleTutorial
    • 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
    • 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
    • allowServerListing

      public boolean allowServerListing
    • reducedDebugInfo

      public boolean reducedDebugInfo
    • 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
    • skipRealms32bitWarning

      public boolean skipRealms32bitWarning
    • hideMatchedNames

      public boolean hideMatchedNames
    • showAutosaveIndicator

      public boolean showAutosaveIndicator
    • keyUp

      public final KeyMapping keyUp
    • keyLeft

      public final KeyMapping keyLeft
    • keyDown

      public final KeyMapping keyDown
    • keyRight

      public final KeyMapping keyRight
    • keyJump

      public final KeyMapping keyJump
    • keyShift

      public final KeyMapping keyShift
    • keySprint

      public final KeyMapping keySprint
    • keyInventory

      public final KeyMapping keyInventory
    • keySwapOffhand

      public final KeyMapping keySwapOffhand
    • keyDrop

      public final KeyMapping keyDrop
    • keyUse

      public final KeyMapping keyUse
    • keyAttack

      public final KeyMapping keyAttack
    • keyPickItem

      public final KeyMapping keyPickItem
    • keyChat

      public final KeyMapping keyChat
    • keyPlayerList

      public final KeyMapping keyPlayerList
    • keyCommand

      public final KeyMapping keyCommand
    • keySocialInteractions

      public final KeyMapping keySocialInteractions
    • keyScreenshot

      public final KeyMapping keyScreenshot
    • keyTogglePerspective

      public final KeyMapping keyTogglePerspective
    • keySmoothCamera

      public final KeyMapping keySmoothCamera
    • keyFullscreen

      public final KeyMapping keyFullscreen
    • keySpectatorOutlines

      public final KeyMapping keySpectatorOutlines
    • keyAdvancements

      public final KeyMapping keyAdvancements
    • keyHotbarSlots

      public final KeyMapping[] keyHotbarSlots
    • keySaveHotbarActivator

      public final KeyMapping keySaveHotbarActivator
    • keyLoadHotbarActivator

      public final KeyMapping keyLoadHotbarActivator
    • keyMappings

      public KeyMapping[] keyMappings
    • minecraft

      protected Minecraft minecraft
    • optionsFile

      private final File optionsFile
    • difficulty

      public Difficulty difficulty
    • hideGui

      public boolean hideGui
    • cameraType

      private CameraType cameraType
    • renderDebug

      public boolean renderDebug
    • renderDebugCharts

      public boolean renderDebugCharts
    • renderFpsChart

      public boolean renderFpsChart
    • lastMpIp

      public 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
    • particles

      public ParticleStatus particles
    • narratorStatus

      public NarratorStatus narratorStatus
    • languageCode

      public String languageCode
    • soundDevice

      public String soundDevice
    • syncWrites

      public boolean syncWrites
  • Constructor Details

  • Method Details

    • getBackgroundOpacity

      public float getBackgroundOpacity(float p_92142_)
    • getBackgroundColor

      public int getBackgroundColor(float p_92171_)
    • getBackgroundColor

      public int getBackgroundColor(int p_92144_)
    • setKey

      public void setKey(KeyMapping p_92160_, InputConstants.Key p_92161_)
    • processOptions

      private void processOptions(Options.FieldAccess p_168428_)
    • load

      public void load()
    • isTrue

      static boolean isTrue(String p_168436_)
    • isFalse

      static boolean isFalse(String p_168441_)
    • dataFix

      private CompoundTag dataFix(CompoundTag p_92165_)
    • save

      public void save()
    • getSoundSourceVolume

      public float getSoundSourceVolume(SoundSource p_92148_)
    • setSoundCategoryVolume

      public void setSoundCategoryVolume(SoundSource p_92150_, float p_92151_)
    • broadcastOptions

      public void broadcastOptions()
    • setModelPart

      private void setModelPart(PlayerModelPart p_92155_, boolean p_92156_)
    • isModelPartEnabled

      public boolean isModelPartEnabled(PlayerModelPart p_168417_)
    • toggleModelPart

      public void toggleModelPart(PlayerModelPart p_168419_, boolean p_168420_)
    • getCloudsType

      public CloudStatus getCloudsType()
    • useNativeTransport

      public boolean useNativeTransport()
    • loadSelectedResourcePacks

      public void loadSelectedResourcePacks(PackRepository p_92146_)
    • setForgeKeybindProperties

      private void setForgeKeybindProperties()
    • getCameraType

      public CameraType getCameraType()
    • setCameraType

      public void setCameraType(CameraType p_92158_)
    • readPackList

      private static List<String> readPackList(String p_168443_)
    • readCloudStatus

      private static CloudStatus readCloudStatus(String p_168445_)
    • writeCloudStatus

      private static String writeCloudStatus(CloudStatus p_168426_)
    • readAmbientOcclusion

      private static AmbientOcclusionStatus readAmbientOcclusion(String p_168447_)
    • readMainHand

      private static HumanoidArm readMainHand(String p_168449_)
    • writeMainHand

      private static String writeMainHand(HumanoidArm p_168415_)
    • getFile

      public File getFile()
    • dumpOptionsForReport

      public String dumpOptionsForReport()
    • setServerRenderDistance

      public void setServerRenderDistance(int p_193771_)
    • getEffectiveRenderDistance

      public int getEffectiveRenderDistance()