Class MenubarItemView

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

@Internal @Environment(CLIENT) public final class MenubarItemView extends MenubarItem
MenubarItem implementation for "View".
  • Field Details

  • Constructor Details

    • MenubarItemView

      public MenubarItemView()
  • 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.