public class GameSettings
extends java.lang.Object
Constructor and Description |
---|
GameSettings(Minecraft mcIn,
java.io.File mcDataDir) |
Modifier and Type | Method and Description |
---|---|
private CompoundNBT |
dataFix(CompoundNBT nbt) |
void |
fillResourcePackList(ResourcePackList<ClientResourcePackInfo> resourcePackListIn) |
int |
getChatBackgroundColor(int p_216839_1_) |
CloudOption |
getCloudOption() |
java.util.Set<PlayerModelPart> |
getModelParts() |
float |
getSoundLevel(SoundCategory category) |
int |
getTextBackgroundColor(float p_216841_1_) |
float |
getTextBackgroundOpacity(float p_216840_1_) |
boolean |
isUsingNativeTransport() |
void |
loadOptions() |
private static float |
parseFloat(java.lang.String p_74305_0_) |
void |
saveOptions() |
void |
sendSettingsToServer() |
private void |
setForgeKeybindProperties() |
void |
setKeyBindingCode(KeyBinding keyBindingIn,
InputMappings.Input inputIn) |
void |
setModelPartEnabled(PlayerModelPart modelPart,
boolean enable) |
void |
setSoundLevel(SoundCategory category,
float volume) |
void |
switchModelPartEnabled(PlayerModelPart modelPart) |
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
private static final com.google.common.base.Splitter KEY_VALUE_SPLITTER
public double mouseSensitivity
public int renderDistanceChunks
public int framerateLimit
public CloudOption cloudOption
public boolean fancyGraphics
public AmbientOcclusionStatus ambientOcclusionStatus
public java.util.List<java.lang.String> resourcePacks
public java.util.List<java.lang.String> incompatibleResourcePacks
public ChatVisibility chatVisibility
public double chatOpacity
public double accessibilityTextBackgroundOpacity
@Nullable public java.lang.String fullscreenResolution
public boolean hideServerAddress
public boolean advancedItemTooltips
public boolean pauseOnLostFocus
private final java.util.Set<PlayerModelPart> setModelParts
public HandSide mainHand
public int overrideWidth
public int overrideHeight
public boolean heldItemTooltips
public double chatScale
public double chatWidth
public double chatHeightUnfocused
public double chatHeightFocused
public int mipmapLevels
private final java.util.Map<SoundCategory,java.lang.Float> soundLevels
public boolean useNativeTransport
public AttackIndicatorStatus attackIndicator
public TutorialSteps tutorialStep
public int biomeBlendRadius
public double mouseWheelSensitivity
public boolean rawMouseInput
public int glDebugVerbosity
public boolean autoJump
public boolean autoSuggestCommands
public boolean chatColor
public boolean chatLinks
public boolean chatLinksPrompt
public boolean vsync
public boolean entityShadows
public boolean forceUnicodeFont
public boolean invertMouse
public boolean discreteMouseScroll
public boolean realmsNotifications
public boolean reducedDebugInfo
public boolean snooper
public boolean showSubtitles
public boolean accessibilityTextBackground
public boolean touchscreen
public boolean fullscreen
public boolean viewBobbing
public boolean toggleCrouch
public boolean toggleSprint
public boolean field_230152_Z_
public final KeyBinding keyBindForward
public final KeyBinding keyBindLeft
public final KeyBinding keyBindBack
public final KeyBinding keyBindRight
public final KeyBinding keyBindJump
public final KeyBinding keyBindSneak
public final KeyBinding keyBindSprint
public final KeyBinding keyBindInventory
public final KeyBinding keyBindSwapHands
public final KeyBinding keyBindDrop
public final KeyBinding keyBindUseItem
public final KeyBinding keyBindAttack
public final KeyBinding keyBindPickBlock
public final KeyBinding keyBindChat
public final KeyBinding keyBindPlayerList
public final KeyBinding keyBindCommand
public final KeyBinding keyBindScreenshot
public final KeyBinding keyBindTogglePerspective
public final KeyBinding keyBindSmoothCamera
public final KeyBinding keyBindFullscreen
public final KeyBinding keyBindSpectatorOutlines
public final KeyBinding keyBindAdvancements
public final KeyBinding[] keyBindsHotbar
public final KeyBinding keyBindSaveToolbar
public final KeyBinding keyBindLoadToolbar
public KeyBinding[] keyBindings
protected Minecraft mc
private final java.io.File optionsFile
public Difficulty 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 double fov
public double gamma
public int guiScale
public ParticleStatus particles
public NarratorStatus narrator
public java.lang.String language
public GameSettings(Minecraft mcIn, java.io.File mcDataDir)
public float getTextBackgroundOpacity(float p_216840_1_)
public int getTextBackgroundColor(float p_216841_1_)
public int getChatBackgroundColor(int p_216839_1_)
public void setKeyBindingCode(KeyBinding keyBindingIn, InputMappings.Input inputIn)
public void loadOptions()
private CompoundNBT dataFix(CompoundNBT nbt)
private static float parseFloat(java.lang.String p_74305_0_)
public void saveOptions()
public float getSoundLevel(SoundCategory category)
public void setSoundLevel(SoundCategory category, float volume)
public void sendSettingsToServer()
public java.util.Set<PlayerModelPart> getModelParts()
public void setModelPartEnabled(PlayerModelPart modelPart, boolean enable)
public void switchModelPartEnabled(PlayerModelPart modelPart)
public CloudOption getCloudOption()
public boolean isUsingNativeTransport()
public void fillResourcePackList(ResourcePackList<ClientResourcePackInfo> resourcePackListIn)
private void setForgeKeybindProperties()