Package net.minecraft.client.option
Class GameOptions
java.lang.Object
net.minecraft.client.option.GameOptions
@Environment(CLIENT) public class GameOptions extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GameOptions(MinecraftClient client, File optionsFile) -
Method Summary
Modifier and Type Method Description voidaddResourcePackProfilesToManager(ResourcePackManager manager)CloudRenderModegetCloudRenderMode()PerspectivegetPerspective()floatgetSoundVolume(SoundCategory category)intgetTextBackgroundColor(float fallbackOpacity)intgetTextBackgroundColor(int fallbackColor)floatgetTextBackgroundOpacity(float fallback)private static booleanisFalse(String string)booleanisPlayerModelPartEnabled(PlayerModelPart part)private static booleanisTrue(String string)voidload()voidonPlayerModelPartChange()private static floatparseFloat(String string)voidsetKeyCode(KeyBinding key, InputUtil.Key code)voidsetPerspective(Perspective perspective)voidsetPlayerModelPart(PlayerModelPart part, boolean enabled)voidsetSoundVolume(SoundCategory category, float volume)booleanshouldUseNativeTransport()voidtogglePlayerModelPart(PlayerModelPart part, boolean bool)private CompoundTagupdate(CompoundTag tag)voidwrite()
-
Field Details
-
LOGGER
-
GSON
-
STRING_LIST_TYPE
-
COLON_SPLITTER
-
mouseSensitivity
public double mouseSensitivity -
viewDistance
public int viewDistance -
entityDistanceScaling
public float entityDistanceScaling -
maxFps
public int maxFps -
cloudRenderMode
-
graphicsMode
-
ao
-
resourcePacks
-
incompatibleResourcePacks
-
chatVisibility
-
chatOpacity
public double chatOpacity -
chatLineSpacing
public double chatLineSpacing -
textBackgroundOpacity
public double textBackgroundOpacity -
fullscreenResolution
-
hideServerAddress
public boolean hideServerAddress -
advancedItemTooltips
public boolean advancedItemTooltips -
pauseOnLostFocus
public boolean pauseOnLostFocus -
enabledPlayerModelParts
-
mainArm
-
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 -
soundVolumeLevels
-
useNativeTransport
public boolean useNativeTransport -
attackIndicator
-
tutorialStep
-
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 -
sneakToggled
public boolean sneakToggled -
sprintToggled
public boolean sprintToggled -
skipMultiplayerWarning
public boolean skipMultiplayerWarning -
hideMatchedNames
public boolean hideMatchedNames -
keyForward
-
keyLeft
-
keyBack
-
keyRight
-
keyJump
-
keySneak
-
keySprint
-
keyInventory
-
keySwapHands
-
keyDrop
-
keyUse
-
keyAttack
-
keyPickItem
-
keyChat
-
keyPlayerList
-
keyCommand
-
keySocialInteractions
-
keyScreenshot
-
keyTogglePerspective
-
keySmoothCamera
-
keyFullscreen
-
keySpectatorOutlines
-
keyAdvancements
-
keysHotbar
-
keySaveToolbarActivator
-
keyLoadToolbarActivator
-
keysAll
-
client
-
optionsFile
-
difficulty
-
hudHidden
public boolean hudHidden -
perspective
-
debugEnabled
public boolean debugEnabled -
debugProfilerEnabled
public boolean debugProfilerEnabled -
debugTpsEnabled
public boolean debugTpsEnabled -
lastServer
-
smoothCameraEnabled
public boolean smoothCameraEnabled -
fov
public double fov -
distortionEffectScale
public float distortionEffectScale -
fovEffectScale
public float fovEffectScale -
gamma
public double gamma -
guiScale
public int guiScale -
particles
-
narrator
-
language
-
syncChunkWrites
public boolean syncChunkWrites
-
-
Constructor Details
-
GameOptions
-
-
Method Details
-
getTextBackgroundOpacity
public float getTextBackgroundOpacity(float fallback) -
getTextBackgroundColor
public int getTextBackgroundColor(float fallbackOpacity) -
getTextBackgroundColor
public int getTextBackgroundColor(int fallbackColor) -
setKeyCode
-
load
public void load() -
isTrue
-
isFalse
-
update
-
parseFloat
-
write
public void write() -
getSoundVolume
-
setSoundVolume
-
onPlayerModelPartChange
public void onPlayerModelPartChange() -
setPlayerModelPart
-
isPlayerModelPartEnabled
-
togglePlayerModelPart
-
getCloudRenderMode
-
shouldUseNativeTransport
public boolean shouldUseNativeTransport() -
addResourcePackProfilesToManager
-
getPerspective
-
setPerspective
-