Class RealmsEditInviteCodeScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.AbstractRealmsCodeScreen
com.mojang.realmsclient.gui.screens.configuration.RealmsEditInviteCodeScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final intprivate static final Componentprivate @Nullable CycleButton<Boolean> private static final intprivate static final intprivate static final Componentprivate static final DateTimeFormatterprivate static final Componentprivate InviteCodeExpirationprivate static final Componentprivate booleanprivate static final intprivate final InviteCodeprivate static final org.slf4j.Loggerprivate static final Componentprivate final RealmsInviteCodesScreenprivate final longprivate static final intprivate static final ComponentFields inherited from class AbstractRealmsCodeScreen
layoutFields inherited from class RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, EXPIRATION_NOTIFICATION_DAYS, HARDCORE_HEART_SIZE, LOGO_HEIGHT, LOGO_LOCATION, LOGO_TEXTURE_HEIGHT, LOGO_TEXTURE_WIDTH, LOGO_WIDTH, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields 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
ConstructorsConstructorDescriptionRealmsEditInviteCodeScreen(RealmsInviteCodesScreen parentScreen, long realmId, InviteCode inviteCode) -
Method Summary
Modifier and TypeMethodDescriptionprivate Componentprivate voidhandleFailure(RealmsServiceException exception, String message) voidinit()voidonClose()private voidonCopy()private voidonDelete()private voidonSave()private voidsetActive(boolean value) private voidsetControlsActive(boolean controlsActive) Methods inherited from class AbstractRealmsCodeScreen
extractMenuBackground, extractRenderState, repositionElements, shouldRenderListBackgroundAndSeparatorsMethods inherited from class RealmsScreen
realmsLogo, rowMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isInputCaptured, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, resize, scheduleNarration, 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
capturesInput, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TITLE
-
ACTIVE_LABEL
-
EXPIRATION_DATE_LABEL
-
COPY_LABEL
-
DELETE_LABEL
-
NEVER_EXPIRES_LABEL
-
DATE_FORMAT
-
SPACING
private static final int SPACING- See Also:
-
ACTIVE_BUTTON_WIDTH
private static final int ACTIVE_BUTTON_WIDTH- See Also:
-
CONTENT_WIDTH
private static final int CONTENT_WIDTH- See Also:
-
CODE_COLUMN_WIDTH
private static final int CODE_COLUMN_WIDTH- See Also:
-
FOOTER_HEIGHT
private static final int FOOTER_HEIGHT- See Also:
-
parentScreen
-
realmId
private final long realmId -
inviteCode
-
active
private boolean active -
expiration
-
expirationChanged
private boolean expirationChanged -
activeButton
-
expirationSlider
-
deleteButton
-
saveButton
-
backButton
-
-
Constructor Details
-
RealmsEditInviteCodeScreen
public RealmsEditInviteCodeScreen(RealmsInviteCodesScreen parentScreen, long realmId, InviteCode inviteCode)
-
-
Method Details
-
init
-
setActive
private void setActive(boolean value) -
setControlsActive
private void setControlsActive(boolean controlsActive) -
getExpiresLabel
-
onCopy
private void onCopy() -
onDelete
private void onDelete() -
onSave
private void onSave() -
handleFailure
-
onClose
-