Class BattleMenuElement<B extends BattleMenuElement.MenuListButton>
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
com.pixelmonmod.pixelmon.client.gui.battles.battleScreens.BattleMenuElement<B>
Created by Jay113355 on 11/30/2020.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final net.minecraft.resources.ResourceLocation
protected static final net.minecraft.resources.ResourceLocation
protected static final net.minecraft.resources.ResourceLocation
protected static final net.minecraft.resources.ResourceLocation
protected static final net.minecraft.resources.ResourceLocation
-
Constructor Summary
ConstructorDescriptionBattleMenuElement
(net.minecraft.client.gui.screens.Screen parent) BattleMenuElement
(net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, List<B> buttons) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawElement
(net.minecraft.client.gui.GuiGraphics graphics, float scale) void
drawMenuButtons
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) int
net.minecraft.network.chat.Component
getTitle()
boolean
boolean
goToRightPage
(int maxPages) boolean
handleClickPageTurn
(double mouseX, double mouseY) boolean
isOverReturnButton
(double mouseX, double mouseY) boolean
isOverReuseButton
(double mouseX, double mouseY) void
setButtons
(List<B> buttons) <T extends PixelmonWidget>
TsetPosition
(int x, int y, int width, int height) void
setReuseMessage
(String key, net.minecraft.world.item.ItemStack stack) void
setTitle
(net.minecraft.network.chat.Component title) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
drawElementScaled, getHeight, getWidth, getX, getY, isMouseOver
-
Field Details
-
MENU_BACKGROUND
protected static final net.minecraft.resources.ResourceLocation MENU_BACKGROUND -
MENU_LIST_ITEM
protected static final net.minecraft.resources.ResourceLocation MENU_LIST_ITEM -
MENU_LIST_ITEM_HOVERED
protected static final net.minecraft.resources.ResourceLocation MENU_LIST_ITEM_HOVERED -
MENU_LIST_LEFT
protected static final net.minecraft.resources.ResourceLocation MENU_LIST_LEFT -
MENU_LIST_RIGHT
protected static final net.minecraft.resources.ResourceLocation MENU_LIST_RIGHT
-
-
Constructor Details
-
BattleMenuElement
public BattleMenuElement(net.minecraft.client.gui.screens.Screen parent) -
BattleMenuElement
-
-
Method Details
-
getTitle
public net.minecraft.network.chat.Component getTitle() -
setTitle
public void setTitle(net.minecraft.network.chat.Component title) -
getAllButtons
-
setButtons
-
getPageButtons
-
setReuseMessage
-
drawElement
public void drawElement(net.minecraft.client.gui.GuiGraphics graphics, float scale) - Specified by:
drawElement
in classPixelmonWidget
-
setPosition
- Overrides:
setPosition
in classPixelmonWidget
-
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()
-