Package net.minecraft.client.gui.screens
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 net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Component
private final boolean
private final String
private static final Component
Fields inherited from class net.minecraft.client.gui.screens.ConfirmScreen
callback, noButton, yesButton
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
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 noButton, 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 void
addButtons
(int y) static Button.OnPress
confirmLink
(Screen lastScreen, String url) static Button.OnPress
confirmLink
(Screen lastScreen, String url, boolean trusted) static Button.OnPress
confirmLink
(Screen lastScreen, URI uri) static Button.OnPress
confirmLink
(Screen lastScreen, URI uri, boolean trusted) static void
confirmLinkNow
(Screen lastScreen, String url) static void
confirmLinkNow
(Screen lastScreen, String url, boolean trusted) static void
confirmLinkNow
(Screen lastScreen, URI uri) static void
confirmLinkNow
(Screen lastScreen, URI uri, boolean trusted) protected static MutableComponent
confirmMessage
(boolean trusted) protected static MutableComponent
confirmMessage
(boolean trusted, String extraInfo) void
void
render
(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) Renders the graphical user interface (GUI) element.Methods inherited from class net.minecraft.client.gui.screens.ConfirmScreen
addExitButton, getNarrationMessage, init, keyPressed, setDelay, shouldCloseOnEsc, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
COPY_BUTTON_TEXT
-
WARNING_TEXT
-
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
-
addButtons
protected void addButtons(int y) - Overrides:
addButtons
in classConfirmScreen
-
copyToClipboard
public void copyToClipboard() -
render
Renders the graphical user interface (GUI) element.- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classConfirmScreen
- Parameters:
guiGraphics
- the GuiGraphics object used for rendering.mouseX
- the x-coordinate of the mouse cursor.mouseY
- the y-coordinate of the mouse cursor.partialTick
- the partial tick time.
-
confirmLinkNow
-
confirmLinkNow
-
confirmLinkNow
-
confirmLinkNow
-
confirmLink
-
confirmLink
-
confirmLink
-
confirmLink
-