Class OnlineOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.options.OptionsSubScreen
net.minecraft.client.gui.screens.options.OnlineOptionsScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Tooltipprivate @Nullable CycleButton<Boolean> private static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate @Nullable CycleButton<Boolean> private static final Componentprivate static final Tooltipprivate @Nullable CycleButton<Boolean> private static final Componentprivate @Nullable AbstractWidgetprivate static final Componentprivate static final Componentprivate static final Componentprivate static final ComponentFields inherited from class OptionsSubScreen
lastScreen, layout, list, optionsFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate static voidapplyFriendSettings(Minecraft minecraft, boolean friendsListEnabled, boolean allowFriendRequests, Consumer<Boolean> onResult) static voidconfirmFriendsListEnabled(Minecraft minecraft, Runnable onEnabled, @Nullable Screen lastScreen) private voidonFriendsListToggled(Boolean newValue, PlayerSocialManager playerSocialManager, OptionInstance<Boolean> inGameNotificationOpt) private voidMethods inherited from class OptionsSubScreen
addContents, addFooter, addTitle, init, onClose, removed, repositionElements, resetOptionMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removeWidget, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
TITLE
-
SERVERS_HEADER
-
REALMS_HEADER
-
FRIENDS_HEADER
-
XBOX_SETTINGS
-
FRIENDS_CONFIRM_TITLE
-
MICROSOFT_ACCOUNT_LINK
-
FRIENDS_CONFIRM_MESSAGE
-
FRIENDS_CONFIRM_TURN_ON
-
FRIENDS_CONFIRM_TURN_OFF
-
FRIENDS_LIST_LABEL
-
ALLOW_FRIEND_REQUESTS_LABEL
-
ALLOW_FRIEND_REQUESTS_TOOLTIP
-
IN_GAME_NOTIFICATIONS_LABEL
-
IN_GAME_NOTIFICATIONS_TOOLTIP
-
friendsListButton
-
allowFriendRequestsButton
-
inGameNotificationButton
-
presenceWidget
-
-
Constructor Details
-
OnlineOptionsScreen
-
-
Method Details
-
confirmFriendsListEnabled
-
applyFriendSettings
-
addOptions
protected void addOptions()- Specified by:
addOptionsin classOptionsSubScreen
-
onFriendsListToggled
private void onFriendsListToggled(Boolean newValue, PlayerSocialManager playerSocialManager, OptionInstance<Boolean> inGameNotificationOpt) -
updateFriendListDependentButtons
private void updateFriendListDependentButtons()
-