Class ConfirmLinkScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ConfirmLinkScreen extends ConfirmScreen
  • Field Details

    • COPY_BUTTON_TEXT

      private static final Component COPY_BUTTON_TEXT
    • WARNING_TEXT

      private static final Component WARNING_TEXT
    • url

      private final String url
    • showWarning

      private final boolean showWarning
  • Constructor Details

    • ConfirmLinkScreen

      public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, String pUrl, boolean pTrusted)
    • ConfirmLinkScreen

      public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, Component pTitle, String pUrl, boolean pTrusted)
    • ConfirmLinkScreen

      public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, Component pTitle, URI pUri, boolean pTrusted)
    • ConfirmLinkScreen

      public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, Component pTitle, Component pMessage, URI pUri, Component pNoButton, boolean pTrusted)
    • ConfirmLinkScreen

      public ConfirmLinkScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback, Component pTitle, Component pMessage, String pUrl, Component pNoButton, boolean pTrusted)
  • Method Details

    • confirmMessage

      protected static MutableComponent confirmMessage(boolean pTrusted, String pExtraInfo)
    • confirmMessage

      protected static MutableComponent confirmMessage(boolean pTrusted)
    • addButtons

      protected void addButtons(int p_169243_)
      Overrides:
      addButtons in class ConfirmScreen
    • copyToClipboard

      public void copyToClipboard()
    • render

      public void render(GuiGraphics p_281548_, int p_281671_, int p_283205_, float p_283628_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class ConfirmScreen
      Parameters:
      p_281548_ - the GuiGraphics object used for rendering.
      p_281671_ - the x-coordinate of the mouse cursor.
      p_283205_ - the y-coordinate of the mouse cursor.
      p_283628_ - the partial tick time.
    • confirmLinkNow

      public static void confirmLinkNow(Screen pLastScreen, String pUrl, boolean pTrusted)
    • confirmLinkNow

      public static void confirmLinkNow(Screen pLastScreen, URI pUri, boolean pTrusted)
    • confirmLinkNow

      public static void confirmLinkNow(Screen pLastScreen, URI pUri)
    • confirmLinkNow

      public static void confirmLinkNow(Screen pLastScreen, String pUrl)
    • confirmLink

      public static Button.OnPress confirmLink(Screen pLastScreen, String pUrl, boolean pTrusted)
    • confirmLink

      public static Button.OnPress confirmLink(Screen pLastScreen, URI pUri, boolean pTrusted)
    • confirmLink

      public static Button.OnPress confirmLink(Screen pLastScreen, String pUrl)
    • confirmLink

      public static Button.OnPress confirmLink(Screen pLastScreen, URI pUri)