Class RealmsInviteCodesScreen
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.RealmsInviteCodesScreen
- 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 static final intprivate final RealmsConfigureWorldScreenprivate static final intprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final intprivate booleanprivate static final intprivate List<InviteCode> private static final Componentprivate static final org.slf4j.Loggerprivate static final intprivate final longprivate static final int(package private) static final Componentprivate static final intFields 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
ConstructorsConstructorDescriptionRealmsInviteCodesScreen(RealmsConfigureWorldScreen configureScreen, RealmsServer serverData) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidhandleFailure(RealmsServiceException exception, String message, Screen errorReturnScreen) voidinit()voidonClose()private voidonCopy()private voidonCreate()private voidonDelete()private voidonEdit()(package private) voidprotected voidprivate voidsetControlsActive(boolean controlsActive) protected booleanprivate voidMethods inherited from class AbstractRealmsCodeScreen
extractMenuBackground, extractRenderStateMethods 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, 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
-
LOADING_TEXT
-
COPY_LABEL
-
DELETE_LABEL
-
EDIT_LABEL
-
CREATE_LABEL
-
MAX_INVITE_CODES
private static final int MAX_INVITE_CODES- See Also:
-
SPACING
private static final int SPACING- See Also:
-
CONTENT_WIDTH
private static final int CONTENT_WIDTH- See Also:
-
BOTTOM_BUTTON_WIDTH
private static final int BOTTOM_BUTTON_WIDTH- See Also:
-
TOP_BUTTON_WIDTH
private static final int TOP_BUTTON_WIDTH- See Also:
-
FOOTER_HEIGHT
private static final int FOOTER_HEIGHT- See Also:
-
ENTRY_HEIGHT
private static final int ENTRY_HEIGHT- See Also:
-
configureScreen
-
realmId
private final long realmId -
copyButton
-
editButton
-
deleteButton
-
createButton
-
backButton
-
inviteCodeList
-
inviteCodes
-
fetchedInviteCodes
private boolean fetchedInviteCodes
-
-
Constructor Details
-
RealmsInviteCodesScreen
-
-
Method Details
-
init
-
fetchInviteCodes
private void fetchInviteCodes() -
updateButtonStates
private void updateButtonStates() -
setControlsActive
private void setControlsActive(boolean controlsActive) -
handleFailure
private void handleFailure(RealmsServiceException exception, String message, Screen errorReturnScreen) -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classAbstractRealmsCodeScreen
-
shouldRenderListBackgroundAndSeparators
protected boolean shouldRenderListBackgroundAndSeparators()- Overrides:
shouldRenderListBackgroundAndSeparatorsin classAbstractRealmsCodeScreen
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
onClose
-
onCopy
private void onCopy() -
onDelete
private void onDelete() -
onCreate
private void onCreate() -
onEdit
private void onEdit() -
refreshInviteCodes
void refreshInviteCodes()
-