java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
com.pixelmonmod.pixelmon.client.gui.battles.battleScreens.BattleMenuElement<B>

public class BattleMenuElement<B extends BattleMenuElement.MenuListButton> extends PixelmonWidget
Created by Jay113355 on 11/30/2020.
  • Field Details

  • Constructor Details

    • BattleMenuElement

      public BattleMenuElement(net.minecraft.client.gui.screens.Screen parent)
    • BattleMenuElement

      public BattleMenuElement(net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, List<B> buttons)
  • Method Details

    • getTitle

      public net.minecraft.network.chat.Component getTitle()
    • setTitle

      public void setTitle(net.minecraft.network.chat.Component title)
    • getAllButtons

      public List<B> getAllButtons()
    • setButtons

      public void setButtons(List<B> buttons)
    • getPageButtons

      public List<B> getPageButtons()
    • setReuseMessage

      public void setReuseMessage(String key, @Nullable net.minecraft.world.item.ItemStack stack)
    • drawElement

      public void drawElement(net.minecraft.client.gui.GuiGraphics graphics, float scale)
      Specified by:
      drawElement in class PixelmonWidget
    • setPosition

      public <T extends PixelmonWidget> T setPosition(int x, int y, int width, int height)
      Overrides:
      setPosition in class PixelmonWidget
    • drawMenuButtons

      public void drawMenuButtons(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
    • isOverReturnButton

      public boolean isOverReturnButton(double mouseX, double mouseY)
    • isOverReuseButton

      public boolean isOverReuseButton(double mouseX, double mouseY)
    • handleClickPageTurn

      public boolean handleClickPageTurn(double mouseX, double mouseY)
    • goToLeftPage

      public boolean goToLeftPage()
    • goToRightPage

      public boolean goToRightPage(int maxPages)
    • getMaxPages

      public int getMaxPages()