public class OverlayNew extends OverlayBase
bm, parent, particleEngine
Constructor and Description |
---|
OverlayNew(BattleScreen parent)
Initializes the overlay.
|
Modifier and Type | Method and Description |
---|---|
int |
mouseOverEnemyPokemon(int guiWidth,
int guiHeight,
double mouseX,
double mouseY)
Finds the index of the opposing Pokémon that the cursor is over.
|
int |
mouseOverUserPokemon(int width,
int height,
int guiWidth,
int guiHeight,
double mouseX,
double mouseY)
Finds the index of the allied Pokémon that the cursor is over.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int guiWidth,
int guiHeight)
Renders the overlay.
|
hasCaught
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, 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 OverlayNew(BattleScreen parent)
parent
- The battle GUI that contains this screen.public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int guiWidth, int guiHeight)
render
in class OverlayBase
width
- The width of the screen.height
- The height of the screen.guiWidth
- The width of the GUI.guiHeight
- The height of the GUI.public int mouseOverEnemyPokemon(int guiWidth, int guiHeight, double mouseX, double mouseY)
mouseOverEnemyPokemon
in class OverlayBase
guiWidth
- The width of the GUI.guiHeight
- The height of the GUI.mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.public int mouseOverUserPokemon(int width, int height, int guiWidth, int guiHeight, double mouseX, double mouseY)
mouseOverUserPokemon
in class OverlayBase
width
- The width of the screen.height
- The height of the screen.guiWidth
- The width of the GUI.guiHeight
- The height of the GUI.mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.