public class ChoosePokemon extends BattleMenuScreen<PokemonMenuButton>
BattleScreen.ActionButton, BattleScreen.EnumBattleButton
menuElement
BACKGROUND, DETAILS, MENU_BAG, MENU_BAG_DISABLED, MENU_BAG_ICON, MENU_POKE, MENU_POKE_DISABLED, MENU_POKE_ICON, MENU_RUN, MENU_RUN_DISABLED, MENU_RUN_ICON
bm, mode, parent
Constructor and Description |
---|
ChoosePokemon(BattleScreen parent,
BattleMode mode)
Initializes the battle screen.
|
Modifier and Type | Method and Description |
---|---|
void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
java.util.List<PokemonMenuButton> |
generateButtons() |
net.minecraft.util.text.ITextComponent |
getTitle() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
Draws the battle screen.
|
drawButtons, handleButtonClick, init, renderBackground
getMode, isScreen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, removed, render, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ChoosePokemon(BattleScreen parent, BattleMode mode)
parent
- The battle GUI that the screen is a part of.mode
- The mode represented by the screen.public net.minecraft.util.text.ITextComponent getTitle()
getTitle
in class BattleMenuScreen<PokemonMenuButton>
public java.util.List<PokemonMenuButton> generateButtons()
generateButtons
in class BattleMenuScreen<PokemonMenuButton>
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, float partialTicks)
render
in class BattleMenuScreen<PokemonMenuButton>
width
- The width of the GUI.height
- The height of the GUI.mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.matrix
- The current transformation context.partialTicks
- The current partial ticks.public void click(int width, int height, double mouseX, double mouseY)
click
in class BattleBaseScreen
width
- The width of the GUI.height
- The height of the GUI.mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.