public abstract class OverlayBase
extends net.minecraft.client.gui.screen.Screen
| Modifier and Type | Field and Description | 
|---|---|
protected ClientBattleManager | 
bm
The client-side battle manager to get information from. 
 | 
protected BattleScreen | 
parent
The battle GUI that contains this screen. 
 | 
protected ScreenParticleEngine | 
particleEngine
Particle engine for this UI. 
 | 
| Constructor and Description | 
|---|
OverlayBase(BattleScreen parent)
Initializes the overlay. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
hasCaught(PixelmonClientData targetPokemon)
Checks if a Pokémon pokemon has already been caught by the player before. 
 | 
abstract int | 
mouseOverEnemyPokemon(int guiWidth,
                     int guiHeight,
                     double mouseX,
                     double mouseY)
Finds the index of the opposing Pokémon that the cursor is over. 
 | 
abstract 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. 
 | 
abstract void | 
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
      int width,
      int height,
      int guiWidth,
      int guiHeight)
Renders the overlay. 
 | 
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, 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 BattleScreen parent
protected ClientBattleManager bm
protected ScreenParticleEngine particleEngine
public OverlayBase(BattleScreen parent)
parent - The battle GUI that contains this screen.public abstract void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
                            int width,
                            int height,
                            int guiWidth,
                            int guiHeight)
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 abstract int mouseOverEnemyPokemon(int guiWidth,
                                          int guiHeight,
                                          double mouseX,
                                          double mouseY)
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 abstract int mouseOverUserPokemon(int width,
                                         int height,
                                         int guiWidth,
                                         int guiHeight,
                                         double mouseX,
                                         double mouseY)
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.protected boolean hasCaught(PixelmonClientData targetPokemon)
targetPokemon - The Pokémon to check.