public class PokeCheckerMovesScreen extends PokeCheckerScreen
guiLeft, guiTop, parent, pokemon, position, storage, xSize, ySize| Constructor and Description |
|---|
PokeCheckerMovesScreen(PokemonStorage storage,
StoragePosition position,
net.minecraft.client.gui.screen.Screen parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attackClicked(double i,
double i1)
Keeps track of the selected move.
|
void |
drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY) |
void |
drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY) |
void |
drawMoveDescription(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws move details for valid moves.
|
protected void |
drawSelectedRect(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws a green rectangle around the selected move.
|
protected void |
drawSelectedRectBin(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
Draws a red rectangle around the garbage bin if the player selects an empty move.
|
void |
drawSelection(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
Draws a white rectangle around the selected move.
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
protected int |
moveClicked(double i,
double i1)
Determines which move was clicked.
|
void |
resetAll()
Invalidates all moves on the screen.
|
protected void |
selectMove(double i,
double i1)
Selects a move if it is clicked.
|
void |
switchMoves(int moveToChange2)
Switches the positions of two moves.
|
actionPerformed, arrowsMouseClicked, charTyped, drawArrows, drawBasePokemonInfo, drawCenteredStringWithoutShadow, drawCenteredStringWithoutShadow, drawHealthBar, drawPokemonName, init, isPauseScreen, onClose, renderaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, removed, 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, waitpublic PokeCheckerMovesScreen(PokemonStorage storage, StoragePosition position, @Nullable net.minecraft.client.gui.screen.Screen parent)
public void resetAll()
public void drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class PokeCheckerScreenpublic void drawMoveDescription(com.mojang.blaze3d.matrix.MatrixStack matrix)
public void switchMoves(int moveToChange2)
moveToChange2 - The index of the move to switch the selected move with.public void drawSelection(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
i - The x coordinate of the cursor.i1 - The y coordinate of the cursor.protected void drawSelectedRect(com.mojang.blaze3d.matrix.MatrixStack matrix)
protected void drawSelectedRectBin(com.mojang.blaze3d.matrix.MatrixStack matrix,
int i,
int i1)
i - The x coordinate of the cursor.i1 - The y coordinate of the cursor.protected int moveClicked(double i,
double i1)
i - The x coordinate of the cursor.i1 - The y coordinate of the cursor.protected void attackClicked(double i,
double i1)
i - The x coordinate of the cursor.i1 - The y coordinate of the cursor.protected void selectMove(double i,
double i1)
i - The x coordinate of the cursor.i1 - The y coordinate of the cursor.public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class PokeCheckerScreenpublic void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class PokeCheckerScreen