@Environment(value=CLIENT) public class GameOptions extends Object
Constructor and Description |
---|
GameOptions(MinecraftClient client,
File optionsFile) |
Modifier and Type | Method and Description |
---|---|
void |
addResourcePackProfilesToManager(ResourcePackManager manager) |
CloudRenderMode |
getCloudRenderMode() |
Set<PlayerModelPart> |
getEnabledPlayerModelParts() |
Perspective |
getPerspective() |
float |
getSoundVolume(SoundCategory category) |
int |
getTextBackgroundColor(float fallbackOpacity) |
int |
getTextBackgroundColor(int fallbackColor) |
float |
getTextBackgroundOpacity(float fallback) |
void |
load() |
void |
onPlayerModelPartChange() |
private static float |
parseFloat(String string) |
void |
setKeyCode(KeyBinding key,
InputUtil.Key code) |
void |
setPerspective(Perspective perspective) |
void |
setPlayerModelPart(PlayerModelPart part,
boolean enabled) |
void |
setSoundVolume(SoundCategory category,
float volume) |
boolean |
shouldUseNativeTransport() |
void |
togglePlayerModelPart(PlayerModelPart part) |
private CompoundTag |
update(CompoundTag tag) |
void |
write() |
private static final Logger LOGGER
private static final Gson GSON
private static final Splitter COLON_SPLITTER
public double mouseSensitivity
public int viewDistance
public float entityDistanceScaling
public int maxFps
public CloudRenderMode cloudRenderMode
public GraphicsMode graphicsMode
public AoMode ao
public ChatVisibility chatVisibility
public double chatOpacity
public double chatLineSpacing
public double textBackgroundOpacity
public boolean hideServerAddress
public boolean advancedItemTooltips
public boolean pauseOnLostFocus
private final Set<PlayerModelPart> enabledPlayerModelParts
public Arm mainArm
public int overrideWidth
public int overrideHeight
public boolean heldItemTooltips
public double chatScale
public double chatWidth
public double chatHeightUnfocused
public double chatHeightFocused
public double chatDelay
public int mipmapLevels
private final Map<SoundCategory,Float> soundVolumeLevels
public boolean useNativeTransport
public AttackIndicator attackIndicator
public TutorialStep tutorialStep
public boolean joinedFirstServer
public int biomeBlendRadius
public double mouseWheelSensitivity
public boolean rawMouseInput
public int glDebugVerbosity
public boolean autoJump
public boolean autoSuggestions
public boolean chatColors
public boolean chatLinks
public boolean chatLinksPrompt
public boolean enableVsync
public boolean entityShadows
public boolean forceUnicodeFont
public boolean invertYMouse
public boolean discreteMouseScroll
public boolean realmsNotifications
public boolean reducedDebugInfo
public boolean snooperEnabled
public boolean showSubtitles
public boolean backgroundForChatOnly
public boolean touchscreen
public boolean fullscreen
public boolean bobView
public boolean sneakToggled
public boolean sprintToggled
public boolean skipMultiplayerWarning
public boolean field_26926
public final KeyBinding keyForward
public final KeyBinding keyLeft
public final KeyBinding keyBack
public final KeyBinding keyRight
public final KeyBinding keyJump
public final KeyBinding keySneak
public final KeyBinding keySprint
public final KeyBinding keyInventory
public final KeyBinding keySwapHands
public final KeyBinding keyDrop
public final KeyBinding keyUse
public final KeyBinding keyAttack
public final KeyBinding keyPickItem
public final KeyBinding keyChat
public final KeyBinding keyPlayerList
public final KeyBinding keyCommand
public final KeyBinding keySocialInteractions
public final KeyBinding keyScreenshot
public final KeyBinding keyTogglePerspective
public final KeyBinding keySmoothCamera
public final KeyBinding keyFullscreen
public final KeyBinding keySpectatorOutlines
public final KeyBinding keyAdvancements
public final KeyBinding[] keysHotbar
public final KeyBinding keySaveToolbarActivator
public final KeyBinding keyLoadToolbarActivator
public final KeyBinding[] keysAll
protected MinecraftClient client
private final File optionsFile
public Difficulty difficulty
public boolean hudHidden
private Perspective perspective
public boolean debugEnabled
public boolean debugProfilerEnabled
public boolean debugTpsEnabled
public String lastServer
public boolean smoothCameraEnabled
public double fov
public float distortionEffectScale
public float fovEffectScale
public double gamma
public int guiScale
public ParticlesMode particles
public NarratorMode narrator
public String language
public boolean syncChunkWrites
public GameOptions(MinecraftClient client, File optionsFile)
public float getTextBackgroundOpacity(float fallback)
public int getTextBackgroundColor(float fallbackOpacity)
public int getTextBackgroundColor(int fallbackColor)
public void setKeyCode(KeyBinding key, InputUtil.Key code)
public void load()
private CompoundTag update(CompoundTag tag)
private static float parseFloat(String string)
public void write()
public float getSoundVolume(SoundCategory category)
public void setSoundVolume(SoundCategory category, float volume)
public void onPlayerModelPartChange()
public Set<PlayerModelPart> getEnabledPlayerModelParts()
public void setPlayerModelPart(PlayerModelPart part, boolean enabled)
public void togglePlayerModelPart(PlayerModelPart part)
public CloudRenderMode getCloudRenderMode()
public boolean shouldUseNativeTransport()
public void addResourcePackProfilesToManager(ResourcePackManager manager)
public Perspective getPerspective()
public void setPerspective(Perspective perspective)