Class ConfirmLinkScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.ConfirmScreen
net.minecraft.client.gui.screens.ConfirmLinkScreen
- 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 intprivate final booleanprivate final Stringprivate static final ComponentFields inherited from class ConfirmScreen
callback, layout, noButton, noButtonComponent, yesButton, yesButtonComponentFields 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
ConstructorsConstructorDescriptionConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, String url, boolean trusted) ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, String url, boolean trusted) ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, URI uri, boolean trusted) ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, String url, Component noButtonComponent, boolean trusted) ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, Component title, Component message, URI uri, Component noButton, boolean trusted) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddButtons(LinearLayout buttonLayout) static Button.OnPressconfirmLink(Screen parentScreen, String uri) static Button.OnPressconfirmLink(Screen parentScreen, String uri, boolean trusted) static Button.OnPressconfirmLink(Screen parentScreen, URI uri) static Button.OnPressconfirmLink(Screen parentScreen, URI uri, boolean trusted) static voidconfirmLinkNow(@Nullable Screen parentScreen, URI uri) static voidconfirmLinkNow(@Nullable Screen parentScreen, URI uri, boolean trusted) static voidconfirmLinkNow(Screen parentScreen, String uri) static voidconfirmLinkNow(Screen parentScreen, String uri, boolean trusted) protected static MutableComponentconfirmMessage(boolean trusted) protected static MutableComponentconfirmMessage(boolean trusted, String url) voidMethods inherited from class ConfirmScreen
getNarrationMessage, init, keyPressed, repositionElements, setDelay, shouldCloseOnEsc, tickMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, 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, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
WARNING_TEXT
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- See Also:
-
url
-
showWarning
private final boolean showWarning
-
-
Constructor Details
-
ConfirmLinkScreen
public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, String url, boolean trusted) -
ConfirmLinkScreen
-
ConfirmLinkScreen
-
ConfirmLinkScreen
-
ConfirmLinkScreen
-
-
Method Details
-
confirmMessage
-
confirmMessage
-
addAdditionalText
protected void addAdditionalText()- Overrides:
addAdditionalTextin classConfirmScreen
-
addButtons
- Overrides:
addButtonsin classConfirmScreen
-
copyToClipboard
public void copyToClipboard() -
confirmLinkNow
-
confirmLinkNow
-
confirmLinkNow
-
confirmLinkNow
-
confirmLink
-
confirmLink
-
confirmLink
-
confirmLink
-