public abstract class BattleMenuScreen<B extends BattleMenuElement.MenuListButton> extends BattleScreen
BattleScreen.ActionButton, BattleScreen.EnumBattleButton| Modifier and Type | Field and Description |
|---|---|
protected BattleMenuElement<B> |
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_ICONbm, mode, parent| Constructor and Description |
|---|
BattleMenuScreen(BattleScreen parent,
BattleMode mode)
Initializes the battle screen.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<B> |
generateButtons() |
abstract 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, renderBackgroundclick, getMode, isScreenaddButton, 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, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected BattleMenuElement<B extends BattleMenuElement.MenuListButton> menuElement
public BattleMenuScreen(BattleScreen parent, BattleMode mode)
parent - The battle GUI that the screen is a part of.mode - The mode represented by the screen.public abstract net.minecraft.util.text.ITextComponent getTitle()
getTitle in class net.minecraft.client.gui.screen.Screenpublic abstract java.util.List<B> generateButtons()
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
BattleBaseScreenrender in class BattleBaseScreenmatrix - The current transformation context.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.partialTicks - The current partial ticks.