public class BattleMenuElement<B extends BattleMenuElement.MenuListButton> extends PixelmonWidget
Modifier and Type | Class and Description |
---|---|
static class |
BattleMenuElement.MenuListButton |
Modifier and Type | Field and Description |
---|---|
protected static net.minecraft.util.ResourceLocation |
MENU_BACKGROUND |
protected static net.minecraft.util.ResourceLocation |
MENU_LIST_ITEM |
protected static net.minecraft.util.ResourceLocation |
MENU_LIST_LEFT |
protected static net.minecraft.util.ResourceLocation |
MENU_LIST_RIGHT |
Constructor and Description |
---|
BattleMenuElement(net.minecraft.client.gui.screen.Screen parent) |
BattleMenuElement(net.minecraft.client.gui.screen.Screen parent,
net.minecraft.util.text.ITextComponent title,
java.util.List<B> buttons) |
Modifier and Type | Method and Description |
---|---|
void |
drawElement(com.mojang.blaze3d.matrix.MatrixStack matrix,
float scale) |
void |
drawMenuButtons(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY) |
java.util.List<B> |
getAllButtons() |
java.util.List<B> |
getPageButtons() |
net.minecraft.util.text.ITextComponent |
getTitle() |
boolean |
handleClickPageTurn(double mouseX,
double mouseY) |
boolean |
isOverReturnButton(double mouseX,
double mouseY) |
boolean |
isOverReuseButton(double mouseX,
double mouseY) |
void |
setButtons(java.util.List<B> buttons) |
<T extends PixelmonWidget> |
setPosition(int x,
int y,
int width,
int height) |
void |
setReuseMessage(java.lang.String key,
net.minecraft.item.ItemStack stack) |
void |
setTitle(net.minecraft.util.text.ITextComponent title) |
drawElementScaled, isMouseOver
protected static final net.minecraft.util.ResourceLocation MENU_BACKGROUND
protected static final net.minecraft.util.ResourceLocation MENU_LIST_ITEM
protected static final net.minecraft.util.ResourceLocation MENU_LIST_LEFT
protected static final net.minecraft.util.ResourceLocation MENU_LIST_RIGHT
public BattleMenuElement(net.minecraft.client.gui.screen.Screen parent)
public BattleMenuElement(net.minecraft.client.gui.screen.Screen parent, net.minecraft.util.text.ITextComponent title, java.util.List<B> buttons)
public net.minecraft.util.text.ITextComponent getTitle()
public void setTitle(net.minecraft.util.text.ITextComponent title)
public java.util.List<B> getAllButtons()
public void setButtons(java.util.List<B> buttons)
public java.util.List<B> getPageButtons()
public void setReuseMessage(java.lang.String key, @Nullable net.minecraft.item.ItemStack stack)
public void drawElement(com.mojang.blaze3d.matrix.MatrixStack matrix, float scale)
drawElement
in class PixelmonWidget
public <T extends PixelmonWidget> T setPosition(int x, int y, int width, int height)
setPosition
in class PixelmonWidget
public void drawMenuButtons(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY)
public boolean isOverReturnButton(double mouseX, double mouseY)
public boolean isOverReuseButton(double mouseX, double mouseY)
public boolean handleClickPageTurn(double mouseX, double mouseY)