Class MenubarItemAbout

java.lang.Object
com.thecsdev.betterstats.api.mcbs.view.menubar.MenubarItem
com.thecsdev.betterstats.mcbs.view.menubar.MenubarItemAbout
All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry

@Internal @Environment(CLIENT) public final class MenubarItemAbout extends MenubarItem
MenubarItem implementation for "About".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MenubarItemAbout
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final @NotNull com.thecsdev.commonmc.api.client.gui.ctxmenu.TContextMenu
    createContextMenu(@NotNull net.minecraft.client.Minecraft client, @NotNull McbsEditor mcbsEditor)
    Creates the context menu that is shown when this MenubarItem is clicked in the menubar.
    final @NotNull net.minecraft.network.chat.Component
    Returns the display name for this MenubarItem, which is shown as the label in the menubar.
    static final void
    showUriScreen(@NotNull String uri, boolean isTrusted)
    Opens a ConfirmLinkScreen that asks the user whether they want to open the specified URI.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MenubarItemAbout

      public MenubarItemAbout()
  • Method Details

    • getDisplayName

      @NotNull public final @NotNull net.minecraft.network.chat.Component getDisplayName()
      Description copied from class: MenubarItem
      Returns the display name for this MenubarItem, which is shown as the label in the menubar.
      Specified by:
      getDisplayName in interface com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
      Specified by:
      getDisplayName in class MenubarItem
    • createContextMenu

      @NotNull public final @NotNull com.thecsdev.commonmc.api.client.gui.ctxmenu.TContextMenu createContextMenu(@NotNull @NotNull net.minecraft.client.Minecraft client, @NotNull @NotNull McbsEditor mcbsEditor)
      Description copied from class: MenubarItem
      Creates the context menu that is shown when this MenubarItem is clicked in the menubar.
      Specified by:
      createContextMenu in class MenubarItem
      Parameters:
      client - The Minecraft instance the GUI belongs to.
      mcbsEditor - The McbsEditorGUI's McbsEditor instance.
    • showUriScreen

      @Internal public static final void showUriScreen(@NotNull @NotNull String uri, boolean isTrusted) throws NullPointerException
      Opens a ConfirmLinkScreen that asks the user whether they want to open the specified URI.
      Parameters:
      uri - The URI to show.
      isTrusted - Whether the URI is trusted.
      Throws:
      NullPointerException - If the argument is null.